Skip to content

faulty __VA_OPT__ usage in -D causes unhandled exception #632

Closed

Description

@firewave
$ ./simplecpp -D"f(...)=__VA_OPT__" a.cpp
terminate called after throwing an instance of 'simplecpp::Macro::Error'

Activity

  1. firewave commented on Mar 10, 2026

    @firewave
    CollaboratorAuthor

    This was reported by Coverity.

  2. added a commit that references this issue on Mar 10, 2026
    b04b790
  3. firewave commented on Mar 10, 2026

    @firewave
    CollaboratorAuthor

    Using a fuzzer I was also able to trigger this.

  4. self-assigned this
    on Mar 10, 2026
  5. added a commit that references this issue on Mar 10, 2026
    e1d085f
  6. changed the title [-]specifying faulty `__VA_OPT__` via `-D` caused unehnaled exception[/-] [+]specifying faulty `__VA_OPT__` via `-D` causes unhandled exception[/+] on Mar 10, 2026
  7. changed the title [-]specifying faulty `__VA_OPT__` via `-D` causes unhandled exception[/-] [+]faulty `__VA_OPT__` usage in `-D` causes unhandled exception[/+] on Mar 10, 2026
  8. added 5 commits that reference this issue on Mar 24, 2026
    3ac8bbe
    695ad98
    fe7fc49
    699b9db
    ab60b8d
  9. added a commit that references this issue on Mar 27, 2026
    f437d61
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions