Skip to content

Conversation

@wb8tyw
Copy link
Contributor

@wb8tyw wb8tyw commented Mar 22, 2025

Github user dscp46 discovered a potential data corruption in AX25 frame encoding and the control byte.

In Python3, you can not to some bit manipulations on the str data type as that has to contain valid Unicode characters. One of the bytes types must be used instead.

d-rats_in_mobaxterm_install.sh:
Reports that newerverions of mobaxterm do not have busybox
pre-installed.

d-rats/agw.py:
d-rats/comm.py:
d-rats/wlk.py:
Change to use bytes type for properly encoding binary.

Others:
Spelling and pylint fixes found.

@wb8tyw
Copy link
Contributor Author

wb8tyw commented Mar 22, 2025

If anyone can test this with a packet modem, physical or software that would be great.

The previous code had the potential of creating invalid UTF-8 sequences which would have resulted in corrupted data.

@wb8tyw
Copy link
Contributor Author

wb8tyw commented Mar 22, 2025

Add a fix for a newly discovered fix for potential packet drop issue.

@wb8tyw
Copy link
Contributor Author

wb8tyw commented Mar 30, 2025

Added changes entries.

Github user dscp46 F4HOF discovered a potential data corruption in AX25
frame encoding and the control byte.

In Python3, you can not to some bit manipulations on the str data type
as that has to contain valid Unicode characters.  One of the bytes types
must be used instead.

Github user dscp46 F4H0F discovered an additional character that needs
to be Yencoded to prevent packet loss

d-rats_in_mobaxterm_install.sh:
  Reports that newerverions of mobaxterm do not have busybox
  pre-installed.

d_rats/agw.py:
d_rats/comm.py:
d_rats/wlk.py:
  Change to use bytes type for properly encoding binary.

d_rats/yencode.py:
  Blacklist additional characters for D-Star and AX-25 packets

changes/*:
  Documentation for bug fixes for News file

Others:
  Spelling and pylint fixes found.
@wb8tyw
Copy link
Contributor Author

wb8tyw commented Apr 5, 2025

Found some more character codes that need to be blacklisted.

Copy link
Contributor

@maurizioandreotti maurizioandreotti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i seems fine

@wb8tyw wb8tyw merged commit fead019 into ham-radio-software:master Apr 13, 2025
5 checks passed
@wb8tyw wb8tyw deleted the wb8tyw_ax25 branch April 13, 2025 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants