Swap size_t with gint64 to catch read errors (#2811)
This is similar to commit 5221df224f
.
This commit is contained in:
parent
683e8d9b6f
commit
f1b4b0cb1a
@ -422,7 +422,7 @@ static int
|
||||
vips_foreign_load_matrix_source_is_a_source( VipsSource *source )
|
||||
{
|
||||
unsigned char *data;
|
||||
size_t bytes_read;
|
||||
gint64 bytes_read;
|
||||
char line[80];
|
||||
int width;
|
||||
int height;
|
||||
|
@ -664,7 +664,7 @@ gboolean
|
||||
vips_foreign_load_svg_source_is_a_source( VipsSource *source )
|
||||
{
|
||||
unsigned char *data;
|
||||
size_t bytes_read;
|
||||
gint64 bytes_read;
|
||||
|
||||
if( (bytes_read = vips_source_sniff_at_most( source,
|
||||
&data, SVG_HEADER_SIZE )) <= 0 )
|
||||
|
Loading…
Reference in New Issue
Block a user