Coverity: Overrun static: CID 137, 136
authorNelson Ferreira <nelson.ferreira@ieee.org>
Sat, 21 Jan 2012 04:24:45 +0000 (23:24 -0500)
committerNelson Ferreira <nelson.ferreira@ieee.org>
Sat, 21 Jan 2012 04:24:45 +0000 (23:24 -0500)
commit057eb2987cc8d99ca98a6e11d66c555c82c5b22a
treed2129f9194c589abf201a81efa584d16d8a13011
parentcb3b0d09437256491d66846563616d8522ea8267
Coverity: Overrun static: CID 137, 136

* src/mule/mule-charset.h (CHARSET_BY_ATTRIBUTES): Do paranoid
bounds checking...

* src/mule/mule-charset.h (REP_BYTES_BY_FIRST_BYTE): Make sure to
not dereference in fatal crash scenario where assert flows through...

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
src/mule/mule-charset.h