summaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3/Python/initconfig.c
diff options
context:
space:
mode:
authorbabenko <[email protected]>2026-04-20 17:50:08 +0300
committerbabenko <[email protected]>2026-04-20 22:47:15 +0300
commit91c37c768c512f70419570433421865c9696ccce (patch)
tree4bbebed02cb3c1e7131a71f8563bb3ab0a7fe4b7 /contrib/tools/python3/Python/initconfig.c
parent636615fdec7cc41a3ecf2d5c4ff13be03f86c795 (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/initconfig.c')
0 files changed, 0 insertions, 0 deletions