Files
poky/meta/recipes-support
Mingli Yu 04b69971fb nettle: fix the Segmentation fault
The commit[8ac8fa8ee1 nettle: update to 3.4.1]
add CFLAGS_append = " -std=c99" to silence the
below error for native build:
| ../nettle-3.4.1/rsa-sign-tr.c: In function 'sec_equal':
| ../nettle-3.4.1/rsa-sign-tr.c:243:3: error: 'for' loop initial declarations are only allowed in C99 mode
   for (size_t i = 0; i < limbs; i++)
   ^
| ../nettle-3.4.1/rsa-sign-tr.c:243:3: note: use option -std=c99 or -std=gnu99 to compile your code
| Makefile:263: recipe for target 'rsa-sign-tr.o' failed

But the above change will trigger below Segmentation
fault:
 # echo -n passwd| nettle-pbkdf2 -i 1 -l 16 salt
 [65534.886509] nettle-pbkdf2[708]: segfault at 1f594260 ip 00007f3332256998 sp 00007fff60d44410 error 4 in libnettle.so.6.5[7f3332244000+1d00]
 [65534.887525] Code: e8 6d db fe ff 44 01 6d 68 48 83 c4 08 5b 5d 41 5c 41 5d 41 5e 41 5f c3 66 2e 0f 1f 84 00 00 00 00 00 49 89 dc e9 68 ff f
 Segmentation fault

So update the logic to CFLAGS_append = " -std=gnu99"
to fix the issue.

(From OE-Core rev: 91359a91b8c89dc5e1f3a946137204156c47a3af)

(From OE-Core rev: cccf000f07eb8b60874c66c60a47c46d546e5ca0)

Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-20 14:38:15 +01:00
..
2019-01-14 11:35:55 +00:00
2019-01-03 12:35:54 +00:00
2019-05-12 09:13:38 +01:00
2019-03-29 08:28:53 +00:00
2018-11-23 23:35:18 +00:00
2019-02-25 10:43:07 +00:00
2019-05-12 09:13:38 +01:00
2018-11-14 11:14:39 +00:00
2019-03-06 10:39:25 +00:00
2019-02-20 11:30:35 +00:00
2018-09-10 12:13:06 +01:00
2019-01-11 10:39:09 +00:00
2018-05-04 13:28:01 +01:00
2019-01-11 10:39:09 +00:00
2019-03-24 17:00:52 +00:00
2018-12-05 12:37:02 +00:00
2018-03-09 09:17:02 -08:00
2019-01-18 16:24:39 +00:00
2018-03-09 09:17:02 -08:00
2018-03-04 11:35:40 +00:00
2018-02-06 11:06:29 +00:00
2019-03-24 17:00:52 +00:00
2019-01-18 16:24:39 +00:00
2019-02-02 11:05:59 +00:00
2018-07-24 11:52:26 +01:00
2019-02-19 16:14:57 +00:00
2017-12-10 22:45:18 +00:00
2019-02-19 16:14:57 +00:00
2019-02-07 10:01:07 +00:00
2019-05-20 14:38:15 +01:00
2018-08-08 10:51:59 +01:00
2019-03-11 05:36:37 -07:00
2019-03-11 05:36:37 -07:00
2018-12-15 11:48:07 +00:00
2018-08-16 22:40:28 +01:00
2019-03-18 23:47:43 +00:00