...
In this noncompliant code example, the function mbrlen()
is passed the address of an automatic mbstate_t
object that has not been properly initialized, leading . This leads to undefined behavior, because mbrlen()
dereferences and reads its third argument. See undefined behavior 200 in Annex J of the C Standard.
...