summaryrefslogtreecommitdiffhomepage
path: root/lib/ubus.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-03-08 10:36:05 +0100
committerJo-Philipp Wich <jo@mein.io>2021-03-08 19:18:58 +0100
commite8669a8902079b9485fbbf1fb8884b947de9bbfb (patch)
tree319b8b8c64085e41740a586a8bb1a46d4b755205 /lib/ubus.c
parenta6c69b18cbf19dc43092b0ae23758a83471357a8 (diff)
uci: fix potential invalid memory access in error()
Check the numerical error code index before attempting to look it up in the error string array. Also make error function available on the cursor instance as well. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'lib/ubus.c')
0 files changed, 0 insertions, 0 deletions