We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following message has an opaque field which may have a size of zero:
package Test is type Length is mod 2**8; type M is message Length : Length then Data with Size => 8 * Length; Data : Opaque; end message; end Test;
When serializing a message where Length is zero, the Data field is serialized as a single byte with value 0:
Length
Data
data = b"\x00" msg = PyRFLX.from_specs (["test.rflx"], skip_model_verification=True)["Test"]["M"] msg.parse (data) if data != msg.bytestring: print(f"Serialization mismatch:\ngot: {msg.bytestring.hex()}\nexpected: {data.hex()}")
$ ./parse.py Serialization mismatch: got: 0000 expected: 00
The text was updated successfully, but these errors were encountered:
Fix handling of empty opaque fields
6b86db2
ref #533
04bbb34
ea7c5f5
d863dab
jklmnn
No branches or pull requests
The following message has an opaque field which may have a size of zero:
When serializing a message where
Length
is zero, theData
field is serialized as a single byte with value 0:The text was updated successfully, but these errors were encountered: