Files
android_kernel_xiaomi_sm8450/drivers/rtc
Gustavo A. R. Silva fed9b18611 rtc: remove VLA usage
In preparation to enabling -Wvla, remove VLA and replace it
with a fixed-length array instead.

>From a security viewpoint, the use of Variable Length Arrays can be
a vector for stack overflow attacks. Also, in general, as the code
evolves it is easy to lose track of how big a VLA can get. Thus, we
can end up having segfaults that are hard to debug.

Also, fixed as part of the directive to remove all VLAs from
the kernel: https://lkml.org/lkml/2018/3/7/621

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2018-03-17 14:20:56 +01:00
..
2018-03-17 14:20:51 +01:00
2018-03-17 14:20:56 +01:00
2017-09-01 01:10:11 +02:00
2017-09-01 01:10:11 +02:00
2016-05-20 12:33:51 +02:00
2018-03-17 14:20:50 +01:00
2018-03-17 14:20:56 +01:00
2017-08-22 12:05:21 +02:00
2016-05-20 12:33:51 +02:00
2017-09-05 09:55:02 +02:00
2013-04-19 13:51:25 +02:00
2017-08-24 11:03:35 +02:00
2017-11-29 22:20:56 +01:00
2018-03-17 14:20:54 +01:00
2017-08-24 11:03:36 +02:00
2016-05-20 12:33:51 +02:00