aboutsummaryrefslogtreecommitdiff
path: root/scripts/basic/docproc.c
diff options
context:
space:
mode:
authorFlorian Tobias Schandinat <[email protected]>2009-09-22 16:47:41 -0700
committerLinus Torvalds <[email protected]>2009-09-23 07:39:56 -0700
commit99e9e7d62becd6c7413a9e8fbda7f5b66adb5cbf (patch)
tree63ffee25ae6f56a41ff227aea44556a2d16ee907 /scripts/basic/docproc.c
parentff8147fe71246b81a48de5f37041b026b57d60ca (diff)
fb: fix fb_pan_display range check
Fix the range check for panning. The current code fails to detect some invalid values (very high ones that can occur if an app tries to move further up/left than 0,0) as the check uses the unknown values for calculation so that an overflow can occur. To fix this it is sufficient to move the calculation to the right side to use only trusted values. Kai Jiang detected this problem and proposed an initial patch. Signed-off-by: Florian Tobias Schandinat <[email protected]> Cc: Kai Jiang <[email protected]> Cc: Krzysztof Helt <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/basic/docproc.c')
0 files changed, 0 insertions, 0 deletions