HomeFreeBSD

tools: test: iconv: fix open_2 to not segfault

Description

tools: test: iconv: fix open_2 to not segfault

Record error condition when iconv_open() fails rather than leaving a
bogus iconv_t that iconv_close() can later choke on; this is one failure
mode.

If we opened MAX_LIMIT files with success, we need to rewind one so that
we don't iconv_close() one past the end of cd; this is the second
failure mode.

Sponsored by: Klara, Inc.

Details

Provenance
kevansAuthored on Jan 11 2022, 11:41 PM
Parents
rG7d72ff905770: stand: Make BIOS loader size limits settable
Branches
Unknown
Tags
Unknown