Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 95c0bae7 authored by Mayank Rana's avatar Mayank Rana
Browse files

usb: gadget: f_serial: Use snprintf() instead of sprintf()



USB serial function driver uses sprintf() to expose port number value to
userspace. sprintf() may result into buffer overrun. Hence use snprintf()
instead of sprintf() which also fixes static analysis tool reported error.

Change-Id: I66532dd9a7bdeb572f0289e393128df4ea4e5f38
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent 11276b2c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment