Whole file
semuconsulting/pyrtcm
The author described this change as “fix parse_buffer error”. It counts as a record because the check below fails on the code as it stood at 76596c8ee and passes on e91bd8f97, with nothing else changed between the two runs.
Projectsemuconsulting/pyrtcm
Fix saved2022-03-31
Sharing licenceBSD-3-Clause · LICENSE
Change size+1 −1
What the code was meant to do, written into the code itself as a save note
fix parse_buffer error
The change
| 280 | 280 | start += 1 | |
| 281 | 281 | continue | |
| 282 | 282 | ||
| 283 | - | if len(buf) < start + 2: | |
| 283 | + | if len(buf) < start + 6: | |
| 284 | 284 | break | |
| 285 | 285 | ||
| 286 | 286 | msglen = (buf[start + 1] & 0b00000011 > 8) | buf[start + 2] |
The check that tells the two apart
fail→pass·tests/test_stream.py::StreamTest::testparsebuffer5
Check file tests/test_stream.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.
Origin and history
The code before it76596c8ee282b62af488f15f5b7ad89434ee27da
Broken version dated2022-03-31
Modulepyrtcm.rtcmreader
Units changedRTCMReader
Fingerprintd848a44ab8a2685b
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.