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

Re: Suspicious code in TProc

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Tue, 23 Nov 2010 19:04:14 +0100

On 23.11.2010 14:56, Dmitry wrote:
> Hey.
>
> Inside CEditPropertiesDlg::OnBnClickedImport() the following code resides:
>
> int nNameBytes = 0;
> if ((nNameBytes< 0)||(nNameBytes> 4096))
> {
> //do something here
> }
>
> Either the wrong condition is checked or the if-statement is just not needed - the condition will always evaluate to "false". I can't decide how the code should behave in this case.
>
> Could you please think of fixing it?

Fixed in r20530.

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=2685131
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-11-23 19:04:25 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.