Files
android_kernel_xiaomi_sm8450/arch/sparc/kernel
David S. Miller 2bd161a605 sparc64: Fix buggy strlcpy() conversion in ldom_reboot().
Commit 117a0c5fc9 ("sparc: kernel: using
strlcpy() instead of strcpy()") added a bug to ldom_reboot in
arch/sparc/kernel/ds.c

-		strcpy(full_boot_str + strlen("boot "), boot_command);
+				     strlcpy(full_boot_str + strlen("boot "), boot_command,
+				     			     sizeof(full_boot_str + strlen("boot ")));

That last sizeof() expression evaluates to sizeof(size_t) which is
not what was intended.

Also even the corrected:

     sizeof(full_boot_str) + strlen("boot ")

is not right as the destination buffer length is just plain
"sizeof(full_boot_str)" and that's what the final argument
should be.

Signed-off-by: David S. Miller <davem@davemloft.net>
2013-09-27 13:46:04 -07:00
..
2008-12-04 09:17:15 -08:00
2013-02-17 23:36:56 -05:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2012-05-11 19:27:46 -07:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2012-07-26 16:46:15 -07:00
2008-12-04 09:17:21 -08:00
2012-03-28 16:36:34 +02:00
2013-04-09 14:13:32 -04:00
2012-05-27 23:52:44 -07:00
2012-05-14 14:05:09 -07:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2013-02-20 13:36:50 -08:00
2013-08-02 17:29:06 -07:00
2008-12-04 09:17:21 -08:00
2012-12-14 13:06:43 +10:30
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2012-08-18 23:26:19 -07:00
2013-02-17 23:36:56 -05:00
2013-06-13 22:12:14 +01:00
2012-03-28 18:30:03 +01:00
2013-07-31 19:10:03 -07:00
2013-02-14 09:21:16 -05:00
2013-02-14 09:21:16 -05:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2013-07-10 18:11:34 -07:00
2008-12-04 09:17:21 -08:00