Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/b22e61871ccfce6c6bc66130e7c6eed0f89b3386
...commit
http://git.netsurf-browser.org/netsurf.git/commit/b22e61871ccfce6c6bc66130e7c6eed0f89b3386
...tree
http://git.netsurf-browser.org/netsurf.git/tree/b22e61871ccfce6c6bc66130e7c6eed0f89b3386
The branch, master has been updated
via b22e61871ccfce6c6bc66130e7c6eed0f89b3386 (commit)
from f7a0135300ead08731fe10a63891a12cc2dbe067 (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/netsurf.git/commit/?id=b22e61871ccfce6c6bc66130e7c6eed0f89b3386
commit b22e61871ccfce6c6bc66130e7c6eed0f89b3386
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>
gtk: Don't try to make zero-size bitmaps
Fixes complete failure to render wikipedia and the register when
built against rsvg.
diff --git a/frontends/gtk/bitmap.c b/frontends/gtk/bitmap.c
index bfd29e1..a995a9e 100644
--- a/frontends/gtk/bitmap.c
+++ b/frontends/gtk/bitmap.c
@@ -53,6 +53,10 @@ static void *bitmap_create(int width, int height, enum
gui_bitmap_flags flags)
{
struct bitmap *gbitmap;
+ if (width == 0 || height == 0) {
+ return NULL;
+ }
+
gbitmap = calloc(1, sizeof(struct bitmap));
if (gbitmap != NULL) {
if (flags & BITMAP_OPAQUE) {
-----------------------------------------------------------------------
Summary of changes:
frontends/gtk/bitmap.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/frontends/gtk/bitmap.c b/frontends/gtk/bitmap.c
index bfd29e1..a995a9e 100644
--- a/frontends/gtk/bitmap.c
+++ b/frontends/gtk/bitmap.c
@@ -53,6 +53,10 @@ static void *bitmap_create(int width, int height, enum
gui_bitmap_flags flags)
{
struct bitmap *gbitmap;
+ if (width == 0 || height == 0) {
+ return NULL;
+ }
+
gbitmap = calloc(1, sizeof(struct bitmap));
if (gbitmap != NULL) {
if (flags & BITMAP_OPAQUE) {
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]