In C, the library in question would already be many decades old and with minimal churn, and thus those memory corruption bugs would have been discovered long ago.
There are advantages to building on mature foundations, even if techniques used to build those foundations are dated by modern standards.