bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

vasnprintf: some tweaks


From: Bruno Haible
Subject: vasnprintf: some tweaks
Date: Wed, 19 Jun 2024 20:38:45 +0200

Three small tweaks of the *vasnprintf code:


2024-06-19  Bruno Haible  <bruno@clisp.org>

        vasnwprintf: Optimize handling of %c directive.
        * lib/vasnprintf.c (VASNPRINTF): Use a single ENSURE_ALLOCATION instead
        of two.

2024-06-19  Bruno Haible  <bruno@clisp.org>

        u*-vasnprintf: Fix a rare memory leak.
        * lib/vasnprintf.c (VASNPRINTF): Use ENSURE_ALLOCATION_ELSE instead of
        ENSURE_ALLOCATION, to free temporary allocations before failing due to
        out-of-memory.

2024-06-19  Bruno Haible  <bruno@clisp.org>

        u*-vasnprintf: Improve comments.
        * lib/vasnprintf.c (VASNPRINTF): Improve comments.

Attachment: 0001-u-vasnprintf-Improve-comments.patch
Description: Text Data

Attachment: 0002-u-vasnprintf-Fix-a-rare-memory-leak.patch
Description: Text Data

Attachment: 0003-vasnwprintf-Optimize-handling-of-c-directive.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]