Skip to content

Commit

Permalink
hdf-eos: fix potential nullptr deref in EHmetagroup()
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Dec 8, 2024
1 parent 5c0a1a8 commit f1911cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frmts/hdf4/hdf-eos/EHapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1591,7 +1591,8 @@ EHmetagroup(int32 sdInterfaceID, const char *structname, const char *structcode,
}
/* Do string search */
/* ---------------- */
metaptr = strstr(metaptr, utlstr);
if (metaptr)
metaptr = strstr(metaptr, utlstr);


/*
Expand Down

0 comments on commit f1911cf

Please sign in to comment.