fix check-structures-sanity not catching certain types of invalid string on GCC builds.

update structures.
develop
Ben Lubar 2020-02-21 15:07:48 -06:00
parent 81c304f7ee
commit f383f63eea
No known key found for this signature in database
GPG Key ID: 92939677AB59EDA4
2 changed files with 3 additions and 1 deletions

@ -1 +1 @@
Subproject commit 5e14929a059671993b801a1d712c418ab6327a6a
Subproject commit c3835a548baade596e422666872ec80134c024e1

@ -689,6 +689,8 @@ void Checker::check_stl_string(const ToCheck & item)
#else
if (!check_access(item, string->ptr, item.identity, 1))
{
// nullptr is NOT okay here
FAIL("invalid string pointer");
return;
}
if (!check_access(item, string->ptr - 1, item.identity, sizeof(*string->ptr)))