[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Patch - strings not terminated on edge cases, other minor fixes

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Sat, 05 Mar 2011 20:41:22 +0100

On 05.03.2011 14:19, Dmitry wrote:
> Hey.
>
> Attached is an untested patch that addresses
> - the fact that GetModuleHandle() doesn't null-terminate the string if there's no room for that
> - use of hardcoded constants instead of _counof()
> - no check for null pointer before dereferencing the pointer

Committed in r20971.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2709755
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-03-05 20:41:33 CET

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.