diff options
| author | benarcher2691 <ben.archer2691@gmail.com> | 2025-12-01 19:16:44 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-01 13:16:44 -0500 |
| commit | 7f2d5d6883b5738682aa18ff84a20a632ffa9790 (patch) | |
| tree | 0efa0b9ff733cc22fa87042c4d45cdb1d39d15ec /runtime/syntax/python.vim | |
| parent | 1de77c608fa99760a0073db71f687e618f539020 (diff) | |
| download | rneovim-7f2d5d6883b5738682aa18ff84a20a632ffa9790.tar.gz rneovim-7f2d5d6883b5738682aa18ff84a20a632ffa9790.tar.bz2 rneovim-7f2d5d6883b5738682aa18ff84a20a632ffa9790.zip | |
fix(msgpack): use fixstr encoding for strings of length 20-31 #36737
Problem:
MessagePack fixstr format supports string lengths 0-31, but mpack_str()
only used fixstr for lengths < 20. Strings of 20-31 bytes were
incorrectly encoded as str8 (2-byte header) instead of fixstr (1-byte
header).
Solution:
Change the condition from `len < 20` to `len < 32` to match the
MessagePack specification.
This fix affects message timing which exposed a pre-existing race
condition in the channels_spec PTY test. The test now uses a helper
function to accumulate partial PTY reads, making it more robust.
Fixes #32784
Diffstat (limited to 'runtime/syntax/python.vim')
0 files changed, 0 insertions, 0 deletions