[oe] icedtea-7-native stringop-overflow error

Renato Caldas ml at calgera.com
Tue May 14 14:06:49 UTC 2019


Hi,

I'm having trouble building icedtea-7-native on warrior, here's the 
relevant error:

| 
/(...)/build/tmp/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk-boot/hotspot/src/share/vm/adlc/dfa.cpp:546:16: 
error: ‘char* strncpy(char*, const char*, size_t)’ specified bound 
depends on the length of the source argument [-Werror=stringop-overflow=]
|          strncpy(shared_pred_loc, shared_pred_var, 
strlen(shared_pred_var));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

There was a previous attempt at silencing a similar warning in commit 
f83992acbe737a1d8cc87e73c8983b7fa2f64a1b of meta-java, except for the 
format-overflow warning.

I'm not sure how to approach this, whether to just silence the warning 
or try to fix it somehow. Any help would really be appreciated!


BTW I just posted this question at the yocto mailing list, but have 
since realized it was probably the wrong list. Sorry for the repost.


Cheers,
-- 
Renato Caldas
Calgera, Unipessoal Lda.
Email: renato at calgera.com
Tel: +351 967 709 735


More information about the Openembedded-devel mailing list