mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[PATCH] fs/*: trivial vsnprintf() conversion
It would very lame to get buffer overflow via one of the following. Signed-off-by: Alexey Dobriyan <[email protected]> Cc: Dave Kleikamp <[email protected]> Cc: Mark Fasheh <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
e0980dafa3
commit
4a6e617a4b
6 changed files with 11 additions and 11 deletions
|
|
@ -1709,7 +1709,7 @@ void udf_error(struct super_block *sb, const char *function,
|
|||
sb->s_dirt = 1;
|
||||
}
|
||||
va_start(args, fmt);
|
||||
vsprintf(error_buf, fmt, args);
|
||||
vsnprintf(error_buf, sizeof(error_buf), fmt, args);
|
||||
va_end(args);
|
||||
printk (KERN_CRIT "UDF-fs error (device %s): %s: %s\n",
|
||||
sb->s_id, function, error_buf);
|
||||
|
|
@ -1721,7 +1721,7 @@ void udf_warning(struct super_block *sb, const char *function,
|
|||
va_list args;
|
||||
|
||||
va_start (args, fmt);
|
||||
vsprintf(error_buf, fmt, args);
|
||||
vsnprintf(error_buf, sizeof(error_buf), fmt, args);
|
||||
va_end(args);
|
||||
printk(KERN_WARNING "UDF-fs warning (device %s): %s: %s\n",
|
||||
sb->s_id, function, error_buf);
|
||||
|
|
|
|||
Loading…
Reference in a new issue