Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added background info about mbrlen()

...

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.

...