Skip to content

Add UTF-16LE roundtrip tests for StrFixedLenPaddedField#1

Merged
randomstr1ng merged 1 commit into
randomstr1ng:honeysap-compatibilityfrom
DaCodah:test/utf16le-roundtrip
Jul 3, 2026
Merged

Add UTF-16LE roundtrip tests for StrFixedLenPaddedField#1
randomstr1ng merged 1 commit into
randomstr1ng:honeysap-compatibilityfrom
DaCodah:test/utf16le-roundtrip

Conversation

@DaCodah

@DaCodah DaCodah commented Jul 3, 2026

Copy link
Copy Markdown

Adds the roundtrip coverage requested in OWASP#93 for the encoding-aware
branch of StrFixedLenPaddedField in utils/fields.py.

Two tests: a basic UTF-16LE roundtrip (addfield produces UTF-16LE bytes with
NUL padding to the fixed width, getfield returns the original str), and the
same roundtrip with a non-ASCII character.

Full test suite passes locally on top of honeysap-compatibility (582 passed).

@randomstr1ng
randomstr1ng merged commit d746f72 into randomstr1ng:honeysap-compatibility Jul 3, 2026
@DaCodah
DaCodah deleted the test/utf16le-roundtrip branch July 4, 2026 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants