From: Jason Self Date: Sat, 28 Jul 2018 01:28:13 +0000 (-0700) Subject: as31: update type of sizebuf variables X-Git-Tag: v1.3~1 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=7c893e3541db2fa27e6dd5b90498b5b3e95e1dd6;p=linux-libre-firmware.git as31: update type of sizebuf variables This avoids segfaults. This is imported from version 2.3.1-7 of the Debian package in the file update_sizebuf_types.patch. Corresponding Debian bug is #887320. --- diff --git a/as31/as31/run.c b/as31/as31/run.c index 9e5263b..6010ee8 100644 --- a/as31/as31/run.c +++ b/as31/as31/run.c @@ -34,10 +34,10 @@ int run_as31(const char *infile, int lst, int use_stdout, FILE* finPre; char tmpName[256]; char *lineBuffer=NULL; - int sizeBuf=0; + long unsigned int sizeBuf=0; char *includePtr=NULL; char *incLineBuffer=NULL; - int incSizeBuf=0; + long unsigned int incSizeBuf=0; FILE* includeFile=NULL; int fd;