diff options
| author | Linus Torvalds <[email protected]> | 2006-06-28 17:09:34 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2006-06-28 17:09:34 -0700 |
| commit | 0a6047eef1c465c38aacfbdab193161b3f0cd144 (patch) | |
| tree | 3347213ad162a9570d6f4c5cffa1f8db7abb7cba /scripts/patch-kernel | |
| parent | 27d68a36c4f1ca2fc6be82620843493462c08c51 (diff) | |
Fix vsnprintf off-by-one bug
The recent vsnprintf() fix introduced an off-by-one, and it's now
possible to overrun the target buffer by one byte.
The "end" pointer points to past the end of the buffer, so if we
have to truncate the result, it needs to be done though "end[-1]".
[ This is just an alternate and simpler patch to one proposed by Andrew
and Jeremy, who actually noticed the problem ]
Acked-by: Andrew Morton <[email protected]>
Acked-by: Jeremy Fitzhardinge <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions