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:
Alx Sa 2023-09-29 20:38:51 +00:00
parent e4c362a9c3
commit 865cc56894
1 changed files with 1 additions and 0 deletions

View File

@ -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++;