Skip to content

Commit

Permalink
fix a used-before-set error in im_vips2dz
Browse files Browse the repository at this point in the history
we were reading an uninited string in a vips7 compatibility wrapper, thanks
yifengchen-cc

see #1419
  • Loading branch information
jcupitt committed Sep 3, 2019
1 parent 8ddbfba commit 2ab5aa7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libvips/deprecated/im_vips2dz.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ im_vips2dz( IMAGE *in, const char *filename )
*p = '\0';
im_strncpy( mode, p + 1, FILENAME_MAX );
}
else
strcpy( mode, "" );

strcpy( buf, mode );
p = &buf[0];
Expand Down

0 comments on commit 2ab5aa7

Please sign in to comment.