diff options
| author | Jasper van de Gronde <jasper.vandegronde@gmail.com> | 2008-12-02 09:39:11 +0000 |
|---|---|---|
| committer | jaspervdg <jaspervdg@users.sourceforge.net> | 2008-12-02 09:39:11 +0000 |
| commit | e94d1bf4affb1de62b5c19fc3157dc064b32ea6b (patch) | |
| tree | 9d0e6eec6ec951d865681cadbc923301060242a3 /src/helper | |
| parent | Small changes to Gaussian filtering that make part of the IIR code a bit clea... (diff) | |
| download | inkscape-e94d1bf4affb1de62b5c19fc3157dc064b32ea6b.tar.gz inkscape-e94d1bf4affb1de62b5c19fc3157dc064b32ea6b.zip | |
Very slight change to allocation of stripe buffer in png-write.cpp that makes it a bit harder to break.
(bzr r6932)
Diffstat (limited to 'src/helper')
| -rw-r--r-- | src/helper/png-write.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helper/png-write.cpp b/src/helper/png-write.cpp index eb60169c4..753b0df45 100644 --- a/src/helper/png-write.cpp +++ b/src/helper/png-write.cpp @@ -500,8 +500,8 @@ sp_export_png_file(SPDocument *doc, gchar const *filename, write_status = sp_png_write_rgba_striped(doc, path, width, height, xdpi, ydpi, sp_export_get_rows, &ebp); nr_pixelstore_64K_free(ebp.px); } else { - ebp.px = g_new(guchar, 4 * 64 * width); ebp.sheight = 64; + ebp.px = g_new(guchar, 4 * ebp.sheight * width); write_status = sp_png_write_rgba_striped(doc, path, width, height, xdpi, ydpi, sp_export_get_rows, &ebp); g_free(ebp.px); } |
