Package: libeb16
Version: 4.4.3-10
Tags: patch
Severity: minor
[Resent since previous report hasn't appeared on BTS]
In the function zio_unzip_slice_sebxa() in zio.c, the signed return
value of calls to zio_read_raw() is assigned to an unsigned variable
of type size_t; as a result errors (signaled by rtn value -1) may go
undetected.
Patch attached.
--- a/eb/zio.c
+++ b/eb/zio.c
@@ -1827,7 +1827,7 @@ zio_unzip_slice_sebxa(Zio *zio, char *out_buffer)
{
char in_buffer[ZIO_SEBXA_SLICE_LENGTH];
unsigned char *in_buffer_p;
- size_t in_read_rest;
+ ssize_t in_read_rest;
unsigned char *out_buffer_p;
size_t out_length;
int compression_flags[8];