aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2023-05-26 12:53:23 +0100
committerMauro Carvalho Chehab <[email protected]>2023-06-09 15:18:19 +0100
commit1657f2934daf89e8d9fa4b2697008909eb22c73e (patch)
tree75d957744d8e57654f5df854d68d16d6c2705211 /tools/perf/util/trace-event-scripting.c
parentd80be6a10cd3855004dc0ba3716fb1c76471dea1 (diff)
media: atomisp: gmin_platform: fix out_len in gmin_get_config_dsm_var()
Ideally, strlen(cur->string.pointer) and strlen(out) would be the same. But this code is using strscpy() to avoid a potential buffer overflow. So in the same way we should take the strlen() of the smaller string to avoid a buffer overflow in the caller, gmin_get_var_int(). Link: https://lore.kernel.org/r/[email protected] Fixes: 387041cda44e ("media: atomisp: improve sensor detection code to use _DSM table") Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Hans de Goede <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions