Skip to content

main: fix crash on printing -p output#256

Merged
jow- merged 1 commit intojow-:masterfrom
nbd168:pretty-print
Dec 11, 2024
Merged

main: fix crash on printing -p output#256
jow- merged 1 commit intojow-:masterfrom
nbd168:pretty-print

Conversation

@nbd168
Copy link
Copy Markdown
Contributor

@nbd168 nbd168 commented Dec 8, 2024

Delete a duplicate ucv_put() line that can lead to a double-free bug.

Reproduced by running:
ucode -l nl80211 -p 'sprintf("%.J\n",
nl80211.request(nl80211.const.NL80211_CMD_GET_WIPHY,
nl80211.const.NLM_F_DUMP,
{ wiphy: 0, split_wiphy_dump: true }))'

Fixes: 0a7ff47 ("main: pretty-print -p output by default")

Delete a duplicate ucv_put() line that can lead to a double-free bug.

Reproduced by running:
ucode -l nl80211 -p 'sprintf("%.J\n",
    nl80211.request(nl80211.const.NL80211_CMD_GET_WIPHY,
                    nl80211.const.NLM_F_DUMP,
		    { wiphy: 0, split_wiphy_dump: true }))'

Fixes: 0a7ff47 ("main: pretty-print `-p` output by default")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
@jow- jow- merged commit 3eb4e2a into jow-:master Dec 11, 2024
@jow-
Copy link
Copy Markdown
Owner

jow- commented Dec 11, 2024

Merged, thanks!

@nbd168 nbd168 deleted the pretty-print branch January 1, 2025 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants