groff/groff-1.20.1-destbufferoverflow.patch
OBS User autobuild fd2d41ec69 Accepting request 49958 from M17N
Copy from M17N/groff based on submit request 49958 from user mvyskocil

OBS-URL: https://build.opensuse.org/request/show/49958
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/groff?expand=0&rev=25
2010-10-07 22:24:02 +00:00

14 lines
555 B
Diff

Index: src/devices/grops/ps.cpp
===================================================================
--- src/devices/grops/ps.cpp.orig 2009-01-09 15:25:52.000000000 +0100
+++ src/devices/grops/ps.cpp 2010-08-23 15:29:15.848156800 +0200
@@ -833,7 +833,7 @@
{
if (next_encoding_index == 0)
return;
- char *done_encoding = new char[next_encoding_index];
+ char *done_encoding = new char[next_encoding_index +1];
for (int i = 0; i < next_encoding_index; i++)
done_encoding[i] = 0;
for (font_pointer_list *f = font_list; f; f = f->next) {