Source-Changes archive

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

CVS commit: src/lib/libc/citrus/modules



Module Name:    src
Committed By:   riastradh
Date:           Tue Jun 30 23:18:09 UTC 2026

Modified Files:
        src/lib/libc/citrus/modules: citrus_hz.c

Log Message:
citrus/HZ: Be more careful about encoding buffer.

1. Use unsigned char for chlen, since it's never negative and only
   needs to be big enough for the ch array.

2. Expand the ch array by space for two escape sequences, each of
   which is two characters.

   I don't think it is currently possible with the i18n data we ship
   for it to emit two escape sequences in a row -- there is a code
   path to do this, but I don't think it can be reached without
   setting escape sequences for variable 1 and extending this in some
   way.  Nevertheless, let's err on the side of safety.

3. Sprinkle assertions everywhere.

PR 59019: various iconv issues


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libc/citrus/modules/citrus_hz.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index