You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TIL that hamlib uses sprintf in its netrigctl code. If I try to get the power (via rig_power2mW) and specify a frequency with more than 7 decimal digits (IOW >9.999999 MHz), it overflows the command buffer. macOS catches this somehow and kills the process
The format string is:
“\power2mW %f %.0f %s\n”
The first %f produces: 0.250000
The second: 14230000
The %s: USB
For a total of 32 bytes written to a: char cmdbuf[32];
The text was updated successfully, but these errors were encountered:
I saw this issue described in a tweet: https://twitter.com/JeffSipek/status/1457167104600383488
Here's the content:
TIL that hamlib uses sprintf in its netrigctl code. If I try to get the power (via rig_power2mW) and specify a frequency with more than 7 decimal digits (IOW >9.999999 MHz), it overflows the command buffer. macOS catches this somehow and kills the process
The format string is:
“\power2mW %f %.0f %s\n”
The first %f produces: 0.250000
The second: 14230000
The %s: USB
For a total of 32 bytes written to a: char cmdbuf[32];
The text was updated successfully, but these errors were encountered: