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

Skip to content
Commit 24a96cef authored by Michael Bestas's avatar Michael Bestas Committed by Rohit Sekhar
Browse files

msm: camera: Fix buffer overflow in cam_camera_cci_i2c_read_seq

techpack/camera/drivers/cam_sensor_module/cam_sensor_io/cam_sensor_cci_i2c.c:106:3: warning: 'sprintf' will always overflow; destination buffer has
size 4, but format string expands to at least 5 [-Wfortify-source]
                sprintf(cam_gyro_gain.s,"%c%c%c%c", d[0],d[1],d[2],d[3]);
                ^
techpack/camera/drivers/cam_sensor_module/cam_sensor_io/cam_sensor_cci_i2c.c:111:3: warning: 'sprintf' will always overflow; destination buffer has
size 4, but format string expands to at least 5 [-Wfortify-source]
                sprintf(cam_gyro_gain.s,"%c%c%c%c", d[0],d[1],d[2],d[3]);
                ^

Change-Id: I16a3bffc124755b5e6cf3fa0cff63911b7e6ac7f
parent 3d6184d9
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