In libexpat before 2.7.4, the doContent function does not properly determine the buffer size bufSize because there is no integer overflow check for tag buffer reallocation.
https://www.cisa.gov/news-events/ics-advisories/icsa-26-155-04
https://github.com/libexpat/libexpat/pull/1075/commits/9c2d990389e6abe2e44527eeaa8b39f16fe859c7
https://github.com/libexpat/libexpat/pull/1075
https://cert-portal.siemens.com/productcert/html/ssa-253495.html