CK Core Motif
CK Core Motif

XmPicture state-buffer growth

XmPictureState now grows its current-string buffer as accepted input is appended. The old fixed 1024-byte allocation could overwrite the heap for a long valid picture match; the public picture API and state lifetime remain unchanged.

Picture repeat counts are parsed with a checked conversion. Negative and overflowing counts are treated as ordinary picture input instead of being narrowed into an invalid int and used to allocate or copy an unbounded graph.

Run the installed-prefix regression with:

python3 tests/automated/run-picture-regressions.py \
  /absolute/path/to/prefix /absolute/path/to/results