[prev in list] [next in list] [prev in thread] [next in thread] 

List:       evms-devel
Subject:    Re: [Evms-devel] EVMS CLI Patch
From:       Steve Dobbelstein <steved () us ! ibm ! com>
Date:       2006-09-14 17:08:08
Message-ID: OFA371F343.BBFB7779-ON052571E9.005DA1BC-052571E9.005E2106 () us ! ibm ! com
[Download RAW message or body]

"Changju Gao" <CGAO@novell.com> wrote on 09/13/2006 06:00:22 PM:

> I found a problem in file ui/cli/interpreter.c where memory next to a
> variable could be stomped.
>
>    with this definition
>
>       typedef struct handle_array_s {
>          uint            count;
>          object_handle_t handle[0];
>       } __attribute__ ((packed)) handle_array_t;
>
>    EVMS declares a variable
>
>       handle_array_t Tmp_Array;
>
>    And then uses the variable like this
>
>       Tmp_Array.handle[0] = ptr;
>
> This actually stomps to the memory next to "Tmp_Array" and sometimes
> causes segmentation fault.
>
> Attached is the proposed fix.
>
> BTW, EVMS 2.5.5 has fixed all such problems (comparing to 2.3.3) except
> this one.

I have uploaded a slightly modified version of the patch to the Extra
Patches section of the EVMS home page:
http://evms.sourceforge.net/patches/2.5.5/engine/cli_query_segfault.patch

Steve D.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Evms-devel mailing list
Evms-devel@lists.sourceforge.net
To subscribe/unsubscribe, please visit:
https://lists.sourceforge.net/lists/listinfo/evms-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic