John Levon wrote:
> On Mon, Nov 13, 2006 at 09:39:28AM +0100, Roland Mainz wrote:
> > Ok... I may have found the problem - unfortunately the issue now puts
> > the whole ksh93-integration putback in danger:
> > It seems the problem is triggered by the C99 feature to dynamically size
> > arrays on the stack.
> 
> Can you file a bug please? (solaris/utility/ctf). Note that we'll need a fix
> for DWARF too (see 6379193). It shouldn't be difficult.

bugs.opensolaris.org is currently down (or better: The opensolaris.org
is down and therefore I can't sign-in into opensolaris.org) ... ;-(

Test case looks like this:
-- snip --
#include <stdlib.h>
#include <string.h>
#include <stdio.h>

static
void attack(const char *monstername)
{
    char buffer[strlen(monstername)+1];
    strcpy(buffer, monstername);
    puts(buffer);
}

int main( int ac, char *av[] )
{
    puts("start.");
    attack("Greetings from the flying spaghetti-monster!");
    puts("done.");
    return EXIT_SUCCESS;
}
-- snip --
This should trigger the problem because |buffer| has variable-length...

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) [EMAIL PROTECTED]
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 7950090
 (;O/ \/ \O;)
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to