Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/ed84f7a0188d8c983db4a186b1240d955ee08705
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/ed84f7a0188d8c983db4a186b1240d955ee08705
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/ed84f7a0188d8c983db4a186b1240d955ee08705

The branch, master has been updated
       via  ed84f7a0188d8c983db4a186b1240d955ee08705 (commit)
      from  68f1b41bf0c62b79a95c4547194bf7bde535de47 (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=ed84f7a0188d8c983db4a186b1240d955ee08705
commit ed84f7a0188d8c983db4a186b1240d955ee08705
Author: Chris Young <[email protected]>
Commit: Chris Young <[email protected]>

    Amiga: avoid read from NULL pointer

diff --git a/frontends/amiga/font_bullet.c b/frontends/amiga/font_bullet.c
index 6283a1f..dec39a1 100644
--- a/frontends/amiga/font_bullet.c
+++ b/frontends/amiga/font_bullet.c
@@ -349,6 +349,11 @@ static nserror amiga_nsfont_split(const plot_font_style_t 
*fstyle,
  */
 static struct ami_font_cache_node *ami_font_open(const char *font, bool 
critical)
 {
+       if(font == NULL) {
+               NSLOG(netsurf, INFO, "Requested NULL font");
+               return NULL;
+       }
+
        struct ami_font_cache_node *nodedata = ami_font_cache_locate(font);
        if(nodedata) return nodedata;
 


-----------------------------------------------------------------------

Summary of changes:
 frontends/amiga/font_bullet.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/frontends/amiga/font_bullet.c b/frontends/amiga/font_bullet.c
index 6283a1f..dec39a1 100644
--- a/frontends/amiga/font_bullet.c
+++ b/frontends/amiga/font_bullet.c
@@ -349,6 +349,11 @@ static nserror amiga_nsfont_split(const plot_font_style_t 
*fstyle,
  */
 static struct ami_font_cache_node *ami_font_open(const char *font, bool 
critical)
 {
+       if(font == NULL) {
+               NSLOG(netsurf, INFO, "Requested NULL font");
+               return NULL;
+       }
+
        struct ami_font_cache_node *nodedata = ami_font_cache_locate(font);
        if(nodedata) return nodedata;
 


-- 
NetSurf Browser
_______________________________________________
netsurf-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to