Ticket UUID: | e0ef6390ff5992f109a0cc4e568c1363bffb3835 | ||
Title: | Bug in blob_seek | ||
Status: | Open | Type: | Code_Defect |
Severity: | Minor | Priority: | |
Subsystem: | Resolution: | ||
Last Modified: | 2011-01-11 09:44:23 | ||
Version Found In: | |||
Description & Comments: | |||
The blob_seek function has the following
if( p->iCursor<0 ){ p->iCursor = 0; } But iCursor is an unsigned integer and will never go bellow 0, therefore this code does nothing. If iCursor is decremented past 0 it will go to a very high number. I guess I'm being pedantic, but if you took the trouble to write the code I suppose you must have thought it important to guard against this. |