Artifact
516057088af23406aae56f0779cdab5320c55228:
Ticket change
[516057088a]
- New ticket
[e0ef6390ff5992f1|e0ef6390ff] <i>Bug in blob_seek</i>.
by
anonymous
2011-01-11 09:44:23.
D 2011-01-11T09:44:23
J comment The\sblob_seek\sfunction\shas\sthe\sfollowing\r\n\r\n<pre>\r\nif(\sp->iCursor<0\s){\r\n\s\s\s\sp->iCursor\s=\s0;\r\n\s\s}\r\n</pre>\r\n\r\nBut\siCursor\sis\san\sunsigned\sinteger\sand\swill\snever\sgo\sbellow\s0,\stherefore\sthis\scode\sdoes\snothing.\sIf\siCursor\sis\sdecremented\spast\s0\sit\swill\sgo\sto\sa\svery\shigh\snumber.\r\n\r\nI\sguess\sI'm\sbeing\spedantic,\sbut\sif\syou\stook\sthe\strouble\sto\swrite\sthe\scode\sI\ssuppose\syou\smust\shave\sthought\sit\simportant\sto\sguard\sagainst\sthis.
J severity Minor
J status Open
J title Bug\sin\sblob_seek
J type Code_Defect
K e0ef6390ff5992f109a0cc4e568c1363bffb3835
U anonymous
Z e77f730c8ffe0457e2cd0a97d1e47d0b