openwrt / openwrt/rpcd

rpc-sys packagelist missing installed packages

Open
#16 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
15
Forks
28
PR merge metrics
No merged PRs in 30d

Description

I am running Netgear R7800 (ipq806x-generic-netgear_r7800). In 24.10.x (all versions as far as I can tell), rpc-sys fails to detect that "wpad-mesh-mbedtls" is installed (see OWUT comment). This appears to be a caused by a buffer overrun in "sys.c".

Increasing the read buffer size in "sys.c" (see attached) would be a quick fix, but perhaps the parsing of the opkg status file needs to be re-worked.

increase-buffer-size.patch.txt

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading sys.c and reproducing rpc-sys package detection for wpad-mesh-mbedtls on the reported Netgear R7800 configuration. Compare the attached buffer-size patch with the existing opkg status parsing, and consider whether parsing needs broader changes. Done means rpc-sys detects the installed package reliably without a buffer overrun.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.