From ac7547d79cbb08b0c94b7c60dface7d5c90eb0e3 Mon Sep 17 00:00:00 2001 From: aurelien Date: Fri, 30 May 2014 19:59:43 +0200 Subject: htmldoc --- pcr/htmldoc/fortify-fail.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 pcr/htmldoc/fortify-fail.patch (limited to 'pcr/htmldoc/fortify-fail.patch') diff --git a/pcr/htmldoc/fortify-fail.patch b/pcr/htmldoc/fortify-fail.patch new file mode 100644 index 000000000..32ec88735 --- /dev/null +++ b/pcr/htmldoc/fortify-fail.patch @@ -0,0 +1,21 @@ +diff -ur htmldoc-1.8.27~/htmldoc/ps-pdf.cxx htmldoc-1.8.27/htmldoc/ps-pdf.cxx +--- htmldoc-1.8.27~/htmldoc/ps-pdf.cxx 2009-08-13 19:32:21.846860508 -0400 ++++ htmldoc-1.8.27/htmldoc/ps-pdf.cxx 2009-08-13 19:40:29.185857503 -0400 +@@ -8619,7 +8619,7 @@ + return (NULL); + } + // Safe because buffer is allocated... +- strcpy((char *)r->data.text.buffer, (char *)data); ++ memcpy((char *)r->data.text.buffer, (char *)data, strlen((char *)data)); + get_color(_htmlTextColor, r->data.text.rgb); + break; + case RENDER_IMAGE : +@@ -8640,7 +8640,7 @@ + return (NULL); + } + // Safe because buffer is allocated... +- strcpy((char *)r->data.link, (char *)data); ++ memcpy((char *)r->data.link, (char *)data, strlen((char *)data)); + break; + } + -- cgit v1.2.3-2-g168b