Yeah, part of the problem here is that the source code and the bug were in C, and people commenting here think C and C++ are the same thing.
There's a huge difference between C and C++. There's a big difference between 2001 version of C++ and 2021 version of C++.
The languages are so different that, in general, something that happens to one of them doesn't apply to the other.