File tree 2 files changed +15
-10
lines changed
2 files changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -42,16 +42,20 @@ XRITHeaderParser::XRITHeaderParser(std::ifstream &ifile)
42
42
{
43
43
unsigned char *buf =
44
44
(unsigned char *)std::malloc (totalHeaderLength);
45
- std::memcpy (
46
- buf, probeBuf,
47
- probeSize); // save what we have already read when probing
48
- ifile.read ((char *)buf + probeSize,
49
- totalHeaderLength -
50
- probeSize); // read the rest of the header section
51
- parseHeader (buf, totalHeaderLength);
52
- std::free (buf);
53
-
54
- m_isValid = true ;
45
+ if (buf)
46
+ {
47
+ std::memcpy (
48
+ buf, probeBuf,
49
+ probeSize); // save what we have already read when probing
50
+ ifile.read (
51
+ (char *)buf + probeSize,
52
+ totalHeaderLength -
53
+ probeSize); // read the rest of the header section
54
+ parseHeader (buf, totalHeaderLength);
55
+ std::free (buf);
56
+
57
+ m_isValid = true ;
58
+ }
55
59
}
56
60
}
57
61
Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ for dirname in alg port gcore ogr frmts gnm apps fuzzers; do
111
111
-DPCIDSK_FRMT_UINT64=" \" %llu\" " \
112
112
-DGNMGFIDFormat=" \" %lld\" " \
113
113
-DGDAL_RELEASE_NAME=" \" dummy\" " \
114
+ -DGDAL_RELEASE_NICKNAME=" \" dummy\" " \
114
115
" -DBANDMAP_TYPE=int*" \
115
116
-DSQLITE_UTF8=1 \
116
117
-DSQLITE_DETERMINISTIC=0x000000800 \
You can’t perform that action at this time.
0 commit comments