]> granicus.if.org Git - libexpat/commit
Avoid undefined behavior when computing larger blockSize. The compiler might reason...
authorPascal Cuoq <cuoq@trust-in-soft.com>
Sun, 15 May 2016 17:11:55 +0000 (19:11 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Mon, 16 May 2016 14:10:57 +0000 (16:10 +0200)
commit5c9cc0eed83d2c0c202f2deeeca548d05baac56e
tree003bf8b35a94bf97c72aa948184dacaf03319666
parente375ac847848edd5519d872571b3398925b2932b
Avoid undefined behavior when computing larger blockSize. The compiler might reason that (end - start)*2 is negative only if (end - start) is negative, see https://godbolt.org/g/wVEoTM
expat/lib/xmlparse.c