SHA256
1
0
forked from pool/htmldoc
htmldoc/htmldoc-fortify.diff
OBS User autobuild beb7f3b2ae Accepting request 32582 from Publishing
Copy from Publishing/htmldoc based on submit request 32582 from user coolo

OBS-URL: https://build.opensuse.org/request/show/32582
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/htmldoc?expand=0&rev=6
2010-02-18 14:11:48 +00:00

12 lines
461 B
Diff

--- ./htmldoc/ps-pdf.cxx.orig 2010-02-15 11:13:11.000000000 +0100
+++ ./htmldoc/ps-pdf.cxx 2010-02-15 11:17:02.000000000 +0100
@@ -8615,7 +8615,7 @@
return (NULL);
}
// Safe because buffer is allocated...
- strcpy((char *)r->data.text.buffer, (char *)data);
+ memcpy((char *)r->data.text.buffer, data, strlen ((char *)data) + 1);
get_color(_htmlTextColor, r->data.text.rgb);
break;
case RENDER_IMAGE :