Message 109511 - Python tracker

Message109511

Author stutzbach
Recipients stutzbach
Date 2010-07-08.03:06:43
SpamBayes Score 0.00080505403
Marked as misclassified No
Message-id <1278558407.29.0.39315930303.issue9194@psf.upfronthosting.co.za>
In-reply-to
Content
The comment before fixupMultiSZ and countString states:

** Note that fixupMultiSZ and countString have both had changes
** made to support "incorrect strings".  The registry specification
** calls for strings to be terminated with 2 null bytes.  It seems
** some commercial packages install strings which don't conform,
** causing this code to fail - however, "regedit" etc still work
** with these strings (ie only we don't!).

As indicated in the comments, the two functions dutifully check the supplied length parameter and do not trust the data to be in the correct format.

... except for the inner loop in fixupMultiSZ, which reads:

                for(; *P != '\0'; P++)
                        ;

It should be the same as the inner loop of countStrings:

                for (; P < Q && *P != '\0'; P++)
                        ;
History
Date User Action Args
2010-07-08 03:06:47stutzbachsetrecipients: + stutzbach
2010-07-08 03:06:47stutzbachsetmessageid: <1278558407.29.0.39315930303.issue9194@psf.upfronthosting.co.za>
2010-07-08 03:06:45stutzbachlinkissue9194 messages
2010-07-08 03:06:43stutzbachcreate