Gitweb links:
...log
http://git.netsurf-browser.org/libnsfb.git/shortlog/23ec9ceb5bb32a5348f84...
...commit
http://git.netsurf-browser.org/libnsfb.git/commit/23ec9ceb5bb32a5348f8491...
...tree
http://git.netsurf-browser.org/libnsfb.git/tree/23ec9ceb5bb32a5348f849124...
The branch, master has been updated
via 23ec9ceb5bb32a5348f8491243d41a14564c71f5 (commit)
from 797266ea930ca103e7fa7a2e683158d935683f8f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/libnsfb.git/commit/?id=23ec9ceb5bb32a5348f...
commit 23ec9ceb5bb32a5348f8491243d41a14564c71f5
Author: Michael Drake <tlsa(a)netsurf-browser.org>
Commit: Michael Drake <tlsa(a)netsurf-browser.org>
Fix buffer length.
diff --git a/src/palette.c b/src/palette.c
index d600001..1a24127 100644
--- a/src/palette.c
+++ b/src/palette.c
@@ -30,7 +30,7 @@ bool nsfb_palette_new(struct nsfb_palette_s **palette, int width)
(*palette)->last = 0;
(*palette)->dither = false;
- (*palette)->dither_ctx.data_len = width * 3;
+ (*palette)->dither_ctx.data_len = width * 3 * sizeof(int);
(*palette)->dither_ctx.data = malloc(width * 3 * sizeof(int));
if ((*palette)->dither_ctx.data == NULL) {
nsfb_palette_free(*palette);
-----------------------------------------------------------------------
Summary of changes:
src/palette.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/palette.c b/src/palette.c
index d600001..1a24127 100644
--- a/src/palette.c
+++ b/src/palette.c
@@ -30,7 +30,7 @@ bool nsfb_palette_new(struct nsfb_palette_s **palette, int width)
(*palette)->last = 0;
(*palette)->dither = false;
- (*palette)->dither_ctx.data_len = width * 3;
+ (*palette)->dither_ctx.data_len = width * 3 * sizeof(int);
(*palette)->dither_ctx.data = malloc(width * 3 * sizeof(int));
if ((*palette)->dither_ctx.data == NULL) {
nsfb_palette_free(*palette);
--
NetSurf Framebuffer library