diff options
-rw-r--r-- | doc/HISTORY | 6 | ||||
-rw-r--r-- | generator/pbmtext.c | 2 | ||||
-rw-r--r-- | version.mk | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/doc/HISTORY b/doc/HISTORY index 709b9612..e0557fd3 100644 --- a/doc/HISTORY +++ b/doc/HISTORY @@ -4,9 +4,15 @@ Netpbm. CHANGE HISTORY -------------- +16.04.12 BJH Release 10.74.02 + + pbmtext: Fix bug: invalid memory reference when text contains + code points > 127. Broken in 10.74.00 + 16.03.31 BJH Release 10.74.01 Build: Remove use of strndup so it compiles on Mac OS X 10.6. + Broken in 10.74.00. 16.03.27 BJH Release 10.74.00 diff --git a/generator/pbmtext.c b/generator/pbmtext.c index 221f215e..8ae28616 100644 --- a/generator/pbmtext.c +++ b/generator/pbmtext.c @@ -579,7 +579,7 @@ insertCharacters(bit ** const bits, for (cursor = 0; lp.textArray[line][cursor] != '\0'; ++cursor) { char const currentChar = lp.textArray[line][cursor]; - unsigned int const glyphIndex = (unsigned int) currentChar; + unsigned int const glyphIndex = (unsigned char) currentChar; struct glyph * const glyphP = fontP->glyph[glyphIndex]; int const toprow = row + fontP->maxheight + fontP->y - glyphP->height - glyphP->y; diff --git a/version.mk b/version.mk index 0d25bc1b..e320c1f5 100644 --- a/version.mk +++ b/version.mk @@ -1,3 +1,3 @@ NETPBM_MAJOR_RELEASE = 10 NETPBM_MINOR_RELEASE = 74 -NETPBM_POINT_RELEASE = 1 +NETPBM_POINT_RELEASE = 2 |