odin1314 / yara-project

Automatically exported from code.google.com/p/yara-project
Apache License 2.0
0 stars 0 forks source link

libyara should never call exit(). #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Libyara should not call exit() it should return an appropriate error code for 
the application using it to handle.

Original issue reported on code.google.com by t...@tomjudge.com on 30 Apr 2012 at 5:32

GoogleCodeExporter commented 9 years ago
Just a guess, but I think it's this code here (from "lex.c"):

#ifndef YY_EXIT_FAILURE
#define YY_EXIT_FAILURE 2
#endif

static void yy_fatal_error (yyconst char* msg , yyscan_t yyscanner)
{
        (void) fprintf( stderr, "%s\n", msg );
        exit( YY_EXIT_FAILURE );
}

Original comment by juliavi...@gmail.com on 4 Jul 2012 at 10:23

GoogleCodeExporter commented 9 years ago

Original comment by plus...@gmail.com on 5 Dec 2013 at 5:42