Running 5.9-pre1.

option definition:

flag = {
    name        = user-dlink;
    arg-type    = string;
    max         = 2;
    stack-arg;
    descrip     = "Rewrite Data-Link layer with user specified data";
};

Offending code which crashes:

   /* --user-dlink */
    if (HAVE_OPT(USER_DLINK)) {
        int  ct = STACKCT_OPT(USER_DLINK);
        char **list = STACKLST_OPT(USER_DLINK);
        int first = 1;

        // do something ....
    }

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x0000e758 in dlt_user_parse_opts (ctx=0x3003a0) at dlt_user/user.c:181
181             int  ct = STACKCT_OPT(USER_DLINK);

According to this I seem to be doing the right thing:
http://autogen.sourceforge.net/doc/autogen_240.html#SEC240

Although it calls it 'stack_arg' not 'stack-arg' like here:
http://autogen.sourceforge.net/doc/autogen_219.html#SEC219

-- 
Aaron Turner
http://synfin.net/
http://tcpreplay.synfin.net/ - Pcap editing & replay tools for Unix

-------------------------------------------------------------------------
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
_______________________________________________
Autogen-users mailing list
Autogen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/autogen-users

Reply via email to