diff options
| author | babenko <[email protected]> | 2026-04-20 17:50:08 +0300 |
|---|---|---|
| committer | babenko <[email protected]> | 2026-04-20 22:47:15 +0300 |
| commit | 91c37c768c512f70419570433421865c9696ccce (patch) | |
| tree | 4bbebed02cb3c1e7131a71f8563bb3ab0a7fe4b7 /contrib/tools/python3/Python/codecs.c | |
| parent | 636615fdec7cc41a3ecf2d5c4ff13be03f86c795 (diff) | |
Fix TStaticName::Write comparing only prefix when checking for no-op update
`strncmp(ptr, value.data(), value.length())` only compares `value.length()`
bytes, so a stored string that starts with `value` but is longer (e.g.
stored `"foobar"`, writing `"foo"`) is incorrectly treated as unchanged.
Replaced with `TStringBuf(ptr) == value` which checks both content and length.
commit_hash:4bb50f8e69b464860cd2faed3177d220c3518f40
Diffstat (limited to 'contrib/tools/python3/Python/codecs.c')
0 files changed, 0 insertions, 0 deletions
