From c0d62354d3ad10d397deb2e193862e9ada7e3445 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 19 Sep 2003 19:20:09 +0000 Subject: [PATCH] Remove a pointless check. (#122710, Kjartan Maraas) 2003-09-19 Matthias Clasen * io-tga.c (try_preload): Remove a pointless check. (#122710, Kjartan Maraas) --- gdk-pixbuf/ChangeLog | 5 +++++ gdk-pixbuf/io-tga.c | 6 ------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index bc072dc9cb..af313a4dd0 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,8 @@ +2003-09-19 Matthias Clasen + + * io-tga.c (try_preload): Remove a pointless check. + (#122710, Kjartan Maraas) + Mon Aug 18 10:25:29 2003 Owen Taylor * gdk-pixdata.c (gdk_pixdata_to_csource): Add the correct diff --git a/gdk-pixbuf/io-tga.c b/gdk-pixbuf/io-tga.c index 392d9663a4..1486d44803 100644 --- a/gdk-pixbuf/io-tga.c +++ b/gdk-pixbuf/io-tga.c @@ -760,12 +760,6 @@ static gboolean try_preload(TGAContext *ctx, GError **err) _("TGA image has invalid dimensions")); return FALSE; } - if (ctx->hdr->infolen > 255) { - g_set_error(err, GDK_PIXBUF_ERROR, - GDK_PIXBUF_ERROR_CORRUPT_IMAGE, - _("TGA image comment length is too long")); - return FALSE; - } if ((ctx->hdr->flags & TGA_INTERLEAVE_MASK) != TGA_INTERLEAVE_NONE) { g_set_error(err, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_UNKNOWN_TYPE,