Correct handling of trailing zeros in _rle_encode (#4702)

This commit is contained in:
marfer
2025-09-21 17:43:34 +02:00
committed by GitHub
parent 859a83a1a5
commit 82a24d6b53
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -1095,6 +1095,8 @@ def _rle_encode(string):
count = 0
new += bytes([cur])
if count != 0:
new += b'\0' + bytes([count])
return new