tias / xinput_calibrator

A generic touchscreen calibration program for X.Org
http://www.freedesktop.org/wiki/Software/xinput_calibrator
Other
136 stars 105 forks source link

[calibrator/calibratorUsbtouchscreen.cpp:216]: (error) Buffer is accessed out of bounds. #55

Open dcb314 opened 11 years ago

dcb314 commented 11 years ago

Source code is

sprintf(new_opt, "%s %s=%d %s=%d %s=%d %s=%d %s=%d %s=%d %s=%c %s=%c %s=%c %s=%c\n",
     opt, p_range_x, range_x, p_range_y, range_y,
     p_min_x, new_axys.x_min, p_min_y, new_axys.y_min,
     p_max_x, new_axys.x_max, p_max_y, new_axys.y_max,
     p_transform_xy, yesno(true), p_flip_x, yesno(flip_x),
     p_flip_y, yesno(flip_y), p_swap_xy, yesno(swap_xy));

and new_opt is about 22 bytes long. Suggest increase size of new_opt.