Skip to content

Commit

Permalink
Fix missing nullptr check in ti_expr in the parser
Browse files Browse the repository at this point in the history
Resolves #730 on GitHub
  • Loading branch information
Dekker1 committed Sep 12, 2023
1 parent 59b9100 commit afe67ac
Show file tree
Hide file tree
Showing 6 changed files with 190 additions and 147 deletions.
2 changes: 2 additions & 0 deletions changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ Bug fixes:
model declared names (:bugref:`726`).
- Fix problem where the common type of complex records or tuples was not
correctly determined in the array literals.
- Fix a problem in the parser where a nullptr would be used before a syntax
error was thrown (:bugref:`730`).

.. _v2.7.6:

Expand Down
2 changes: 1 addition & 1 deletion lib/cached/md5_cached.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
set(lexer_lxx_md5_cached "463d007a1f237dd01cb3020208efda3c")
set(parser_yxx_md5_cached "a1a3ad0d5717f0cc50417099ff2ae02f")
set(parser_yxx_md5_cached "a49d72232e30c06667be4eb862bc67eb")
set(regex_lexer_lxx_md5_cached "8906a52bfa0c5ae26354cb272348e656")
set(regex_parser_yxx_md5_cached "68ec070becef5e161c3b97d085b0810e")
10 changes: 6 additions & 4 deletions lib/cached/minizinc/parser.tab.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* A Bison parser, made by GNU Bison 3.7.6. */
/* A Bison parser, made by GNU Bison 3.8.2. */

/* Bison interface for Yacc-like parsers in C
Expand Down Expand Up @@ -35,8 +35,8 @@
especially those whose name start with YY_ or yy_. They are
private implementation details that can be changed or removed. */

#ifndef YY_MZN_YY_USERS_GUIDOT_PROGRAMMING_MINIZINC_LIBMZN_BUILD_XCODE_INCLUDE_MINIZINC_PARSER_TAB_HH_INCLUDED
# define YY_MZN_YY_USERS_GUIDOT_PROGRAMMING_MINIZINC_LIBMZN_BUILD_XCODE_INCLUDE_MINIZINC_PARSER_TAB_HH_INCLUDED
#ifndef YY_MZN_YY_USERS_DEKKER1_LIBRARY_MOBILE_DOCUMENTS_COM_APPLE_CLOUDDOCS_CODE_GITHUB_COM_MINIZINC_LIBMINIZINC_BUILD_NOSYNC_INCLUDE_MINIZINC_PARSER_TAB_HH_INCLUDED
# define YY_MZN_YY_USERS_DEKKER1_LIBRARY_MOBILE_DOCUMENTS_COM_APPLE_CLOUDDOCS_CODE_GITHUB_COM_MINIZINC_LIBMINIZINC_BUILD_NOSYNC_INCLUDE_MINIZINC_PARSER_TAB_HH_INCLUDED
/* Debug traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
Expand Down Expand Up @@ -245,6 +245,8 @@ struct YYLTYPE




int mzn_yyparse (void *parm);

#endif /* !YY_MZN_YY_USERS_GUIDOT_PROGRAMMING_MINIZINC_LIBMZN_BUILD_XCODE_INCLUDE_MINIZINC_PARSER_TAB_HH_INCLUDED */

#endif /* !YY_MZN_YY_USERS_DEKKER1_LIBRARY_MOBILE_DOCUMENTS_COM_APPLE_CLOUDDOCS_CODE_GITHUB_COM_MINIZINC_LIBMINIZINC_BUILD_NOSYNC_INCLUDE_MINIZINC_PARSER_TAB_HH_INCLUDED */
Loading

0 comments on commit afe67ac

Please sign in to comment.