You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1f00f0c
Browse filesBrowse the repository at this point in the historyBrowse files
plugins types REFACTOR build strings with ly_append_str
The bits, identityref, instance-identifier-keys, xpath1.0 and union
type plugins grew their strings by computing each realloc() size by
hand and then writing into the buffer with sprintf() or strcpy(). Use
ly_append_str() instead, which sizes the buffer from the formatted
output itself, so no length computation has to be kept in sync with
the format string. The IPv4/IPv6 zone suffix is now printed with
snprintf() bounded by the allocated size.
ly_append_str() now checks for vsnprintf() failure and size overflow
and is declared with printf format checking. ly_strcat() checks for
vasprintf() failure and no longer leaks on realloc() failure.
Printed values and error messages are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments