diff options
author | Jean-Yves Avenard <jyavenard@gmail.com> | 2010-05-13 09:06:41 -0700 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2010-05-13 09:43:10 -0700 |
commit | 291e6adb5ddbc574fe673b2d3810839c2fda36bc (patch) | |
tree | 3252f30a1cc51db3301038a9b9183c8ab7b3bdc8 /src/image_data/antialias.png | |
parent | 3fea7a17d771321e355d179b72c836bd5412f33f (diff) |
Fix an off-by-one error in nv-control-dpy --print-used-modelines.
The binary data ends with "\0\0" to indicate the end of the MetaMode list. The
last time through the loop, j = MetaModeLen - 1 and the check
if ((str[j] == '\0') && (str[j+1] != '\0')) {
reads past the end of the buffer.
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Andy Ritger <ARitger@nvidia.com>
Diffstat (limited to 'src/image_data/antialias.png')
0 files changed, 0 insertions, 0 deletions