]> granicus.if.org Git - libexpat/commit
Fix uninitialized read of size 1 in little2_updatePosition
authorSebastian Pipping <sebastian@pipping.org>
Fri, 13 May 2016 20:40:15 +0000 (22:40 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Wed, 25 May 2016 16:47:35 +0000 (18:47 +0200)
commita12e78cb1b290e26a2b669eff3664d76bb73a408
treebedf592b5ce81f7c9b53f64633f8d6d3bdbed577
parent4813526e87ea8879799f9838d212e017e462b8df
Fix uninitialized read of size 1 in little2_updatePosition

Reported by Pascal Cuoq

Valgrind's view:
==4416== Conditional jump or move depends on uninitialised value(s)
==4416==    at 0x41F187: little2_updatePosition (xmltok_impl.c:1748)
==4416==    by 0x405F85: XML_GetCurrentColumnNumber (xmlparse.c:1931)
==4416==    by 0x402F7B: reportError (xmlfile.c:67)
==4416==    by 0x403041: processFile (xmlfile.c:84)
==4416==    by 0x403752: filemap (unixfilemap.c:61)
==4416==    by 0x403523: XML_ProcessFile (xmlfile.c:239)
==4416==    by 0x402EBC: main (xmlwf.c:847)
expat/lib/xmltok_impl.c