Re: [PATCH] staging: bcm2835-audio: Replace unsafe strcpy() with strscpy()

2021-02-09 Thread Nicolas Saenz Julienne
On Fri, 2021-02-05 at 08:25 +0100, Juerg Haefliger wrote: > Replace strcpy() with strscpy() in bcm2835-audio/bcm2835.c to prevent the > following when loading snd-bcm2835: > > [ 58.480634] [ cut here ] > [ 58.485321] kernel BUG at lib/string.c:1149! > [ 58.489650]

[PATCH] staging: bcm2835-audio: Replace unsafe strcpy() with strscpy()

2021-02-04 Thread Juerg Haefliger
Replace strcpy() with strscpy() in bcm2835-audio/bcm2835.c to prevent the following when loading snd-bcm2835: [ 58.480634] [ cut here ] [ 58.485321] kernel BUG at lib/string.c:1149! [ 58.489650] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP [ 58.495214] Modules