CoinUtils icon indicating copy to clipboard operation
CoinUtils copied to clipboard

Need to update my old version of the Bison parser, using CoinModelUseful2.cpp

Open callanac opened this issue 8 months ago • 1 comments

I'm using an old version of the Bison parser, CoinModelUseful2.cpp, and I'm getting the following issue while scanning my code:

89646 Out-of-bounds access Memory not owned by this buffer will be accessed, causing memory corruption or incorrect computations. In yyparse(symrec *&, char const *, char *&, int &, double const *, CoinModelHash const &, int &, double, int &, YYSTYPE &, int &): Access of memory past the end of a memory buffer (CWE-119)

This is on line 1034 of CoinModelUseful2.cpp: YYSTACK_RELOCATE (yyss);

I'm wondering what is the best way for me to fully update my parser? I see that my one is as follows: /* $Id: CoinModelUseful2.cpp 1396 2011-03-01 10:42:29Z forrest $ / // Copyright (C) 2005, International Business Machines // Corporation and others. All Rights Reserved. / A Bison parser, made by GNU Bison 1.875c. */ I can't even find CoinModelUseful2.cpp in the current codebase so I'm wondering if it's a non-trivial task to update it?

callanac avatar Jun 11 '24 15:06 callanac