mirror of https://github.com/GNOME/gimp.git
plug-ins: Fix vulnerability in file-psd
Resolves #10101. This patch adds a missing break statement after an error condition is detected to prevent the code from continuing afterwards.
This commit is contained in:
parent
e4c362a9c3
commit
865cc56894
|
@ -583,6 +583,7 @@ decode_packbits (const gchar *src,
|
||||||
{
|
{
|
||||||
IFDBG(2) g_debug ("Overrun in packbits replicate of %d chars", n - unpack_left);
|
IFDBG(2) g_debug ("Overrun in packbits replicate of %d chars", n - unpack_left);
|
||||||
error_code = 2;
|
error_code = 2;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
memset (dst, *src, n);
|
memset (dst, *src, n);
|
||||||
src++;
|
src++;
|
||||||
|
|
Loading…
Reference in New Issue