Parent: bd954700e6314a19c56697a4a617233987f5654e
Author: Bastien Nocera <hadess@hadess.net>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2024-06-03 22:08:10
Tree: f54aeaf46ff1650fdc7196e523276a8da0e69810
obexd: Fix buffer overrun Don't access path at byte 2 when it might only contain a single byte. Error: OVERRUN (CWE-119): [#def27] [important] obexd/client/session.c:1142:2: overrun-buffer-val: Overrunning buffer pointed to by "first" of 1 bytes by passing it to a function which accesses it at byte offset 2. 1140| req->index++; 1141| 1142|-> p->req_id = g_obex_setpath(p->session->obex, first, setpath_cb, p, err); 1143| if (*err != NULL) 1144| return (*err)->code;
Diffstat
| M | gobex/gobex.c | | | 2 | +- |
1 files changed, 1 insertions(+), 1 deletions(-)