[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. f32b744ac98a1d9e3c723
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: n0nb <n0...@us...> - 2025-08-12 17:00:48
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Hamlib -- Ham radio control libraries". The branch, master has been updated via f32b744ac98a1d9e3c7231c46b4ae3b5323b4628 (commit) via 84fbe1df4a2357b00e48430f0206d2f7b641817d (commit) via 9e6ff6edccde4e3ebd346d7f07a2889a0c43735e (commit) from c51357388cb8b52456e2c8561f2f3f329d12cb86 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit f32b744ac98a1d9e3c7231c46b4ae3b5323b4628 Author: Nate Bargmann <n0...@n0...> Date: Tue Aug 12 11:57:10 2025 -0500 Update Segfault-award for netrigctl_open() fix Congrats, Daniele! diff --git a/Segfault-award b/Segfault-award index e775238db..69234e7f6 100644 --- a/Segfault-award +++ b/Segfault-award @@ -7,6 +7,8 @@ A developer cannot apply for HSHR for segfaults on his/her own code. Here is the list of the brave fellows: +* Daniele Forsi, IU5HKX, v4.6.4, Improper indexing in netrigctl_open(). + * Christoph Berg DF7CB python with Hamlib.rig_parse(None) * Saku Nyland OH1KH v4.5.1, 10/2022, rigctld.c using ptt_type=RTS commit 84fbe1df4a2357b00e48430f0206d2f7b641817d Merge: c51357388 9e6ff6edc Author: Nate Bargmann <n0...@n0...> Date: Tue Aug 12 07:50:53 2025 -0500 Merge GitHub PR #1842 commit 9e6ff6edccde4e3ebd346d7f07a2889a0c43735e Author: Daniele Forsi IU5HKX <iu...@gm...> Date: Tue Aug 12 14:01:30 2025 +0200 Fix segfault when executing the dump_caps command Need to convert the level number 0..63 to the level bit mask. Steps to reproduce tests/rigctld -m 1 & tests/rigctl -m 2 dump_caps Fixes: Thread 1 "rigctl" received signal SIGSEGV, Segmentation fault. [..] (gdb) bt #0 __strlen_sse2 () at ../sysdeps/x86_64/multiarch/strlen-sse2.S:174 #1 0x00007f532c46e300 in __printf_buffer (buf=buf@entry=0x7ffc320ad970, format=0x7f532c8aba22 "%s(%s) ", ap=0x7ffc320ada30, mode_flags=0) at ./stdio-common/vfprintf-process-arg.c:435 #2 0x00007f532c491daf in __vsnprintf_internal (string=<optimized out>, maxlen=<optimized out>, format=<optimized out>, args=args@entry=0x7ffc320ada30, mode_flags=mode_flags@entry=0) at ./libio/vsnprintf.c:96 #3 0x00007f532c469642 in __GI___snprintf ( s=s@entry=0x7ffc320aec94 "BANDSELECT(00000..0.000000/0.000000) NR(0.000000..0.000000/0.000000) PBT_IN(0.000000..0.000000/0.000000) PBT_OUT(0.000000..0.000000/0.000000) CWPITCH(0..0/10) RFPOWER(0.050000..1.000000/0.001957) MICG"..., maxlen=maxlen@entry=3948, format=format@entry=0x7f532c8aba22 "%s(%s) ") at ./stdio-common/snprintf.c:31 #4 0x00007f532c6dc14a in rig_sprintf_parm_gran ( str=str@entry=0x7ffc320aec00 "ANN(0..0/0) APO(0..0/0) BACKLIGHT(0..0/0) BEEP(0..1316880384/1315832322) TIME(0..0/0) BAT(0..0/0) KEYLIGHT(0..0/0) SCREENSAVER(0..4/0) AFIF(0..0/0) BANDSELECT(00000..0.000000/0.000000) NR(0.000000..0."..., nlen=nlen@entry=4096, parm=9223372036854775807, gran=gran@entry=0x55f1f3cac338) at sprintflst.c:646 #5 0x000055f1eb6cd487 in dumpstate (rig=rig@entry=0x55f1f3ca5b20, fout=fout@entry=0x7f532c5f25c0 <_IO_2_1_stdout_>) at dumpstate.c:408 #6 0x000055f1eb6b4b81 in rigctl_dump_caps (rig=0x55f1f3ca5b20, fout=0x7f532c5f25c0 <_IO_2_1_stdout_>, fin=<optimized out>, interactive=<optimized out>, prompt=<optimized out>, vfo_opt=<optimized out>, send_cmd_term=13 '\r', ext_resp=0, resp_sep=10 '\n', cmd=0x55f1eb6dc0e0 <test_list+5760>, vfo=536870912, arg1=0x0, arg2=0x55f1eb6d1ce8 "", arg3=0x55f1eb6d1ce8 "") at rigctl_parse.c:4622 #7 0x000055f1eb6c65f6 in rigctl_parse (my_rig=<optimized out>, fin=<optimized out>, fout=<optimized out>, argv=argv@entry=0x7ffc320b2138, argc=argc@entry=3, sync_cb=sync_cb@entry=0x0, interactive=<optimized out>, prompt=<optimized out>, vfo_opt=<optimized out>, send_cmd_term=<optimized out>, ext_resp_ptr=<optimized out>, resp_sep_ptr=<optimized out>, use_password=<optimized out>) at rigctl_parse.c:1847 #8 0x000055f1eb6b0adc in main (argc=<optimized out>, argv=0x7ffc320b2138) at rigctl.c:801 diff --git a/rigs/dummy/netrigctl.c b/rigs/dummy/netrigctl.c index 9e39365ea..b5551ca14 100644 --- a/rigs/dummy/netrigctl.c +++ b/rigs/dummy/netrigctl.c @@ -861,8 +861,9 @@ static int netrigctl_open(RIG *rig) for (i = 0; p != NULL && i < RIG_SETTING_MAX; ++i) { - int level; - sscanf(p, "%d", &level); + int idx, level; + sscanf(p, "%d", &idx); + level = rig_idx2setting(idx); rig->caps->parm_gran[i].step.s = 0; ----------------------------------------------------------------------- Summary of changes: Segfault-award | 2 ++ rigs/dummy/netrigctl.c | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |