[OE-core] [PATCH 2/2] icu 3.6: do_install failed: Segmentation fault

Khem Raj raj.khem at gmail.com
Fri Jun 29 07:14:55 UTC 2012


On Thu, Jun 28, 2012 at 11:30 PM, Robert Yang <liezhi.yang at windriver.com> wrote:
>
>
> On 06/29/2012 02:06 PM, Khem Raj wrote:
>>
>> On Thu, Jun 28, 2012 at 10:26 PM, Robert Yang<liezhi.yang at windriver.com>
>>  wrote:
>>>
>>> We should still use a constant size since the length of the command
>>> is unknown (or not obviously known):
>>
>>
>> thats the point. Cant you use srtlen(cmd) ?
>>
>
> I'm afraid not, as the code shows below, we should strlen()
> each component of the cmd:
>
>
>    sprintf(cmd, "%s %s%s -f %s %s %s %s %s",
>        make,
>        o->install ? "INSTALLTO=" : "",
>        o->install ? o->install    : "",
>        o->makeFile,
>        o->clean   ? "clean"      : "",
>        o->rebuild ? "rebuild"    : "",
>        o->install ? "install"    : "",
>        o->makeArgs);
>
> and this is only the part for linux os, it still has similar parts for
> U_WINDOWS and OS400 (the component are different), if we strlen() each
> one of them, that would make it complicated. the icu pkg does use many
> malloc() in the other part of code, but it uses the char array here,
> I think that maybe this is the reason.
>

OK its fine what you have

> // Robert
>
>>
>




More information about the Openembedded-core mailing list