Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
callanac opened this issue Jun 11, 2024 · 1 comment

Comments

@callanac
Copy link

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 callanac changed the title Need to updatemy old version of the Bison parser, using CoinModelUseful2.cpp Need to update my old version of the Bison parser, using CoinModelUseful2.cpp Jun 11, 2024
@tkralphs
Copy link
Member

I'm not sure I completely understand the situation or what you're asking exactly, but CoinModelUseful2.cpp is part of [CoinUtils}(https://github.com/coin-or/CoinUtils/), not Clp. See, e.g., here. I've transferred the issue to that project. Hopefully, someone who knows more can help.

@tkralphs tkralphs transferred this issue from coin-or/Clp Jun 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants