commit c77549b64b74c2dbc43fd6ca482e5862424ec063
parent 8798ee43ec89f18984fd03bc64fb4c741c9342f3
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 30 Jun 2026 18:50:23 +0200
handle read error in real extractor correctly
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/plugins/real_extractor.c b/src/plugins/real_extractor.c
@@ -553,12 +553,12 @@ void
EXTRACTOR_real_extract_method (struct EXTRACTOR_ExtractContext *ec)
{
void *data;
- size_t n;
+ ssize_t n;
n = ec->read (ec->cls,
&data,
sizeof (struct RAFF4_Header) + 4 * 256);
- if (n < sizeof (uint32_t))
+ if (n < (ssize_t) sizeof (uint32_t))
return;
switch (ntohl (*(uint32_t *) data))
{