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

Fix lexer buffer size check #2313

Merged
merged 1 commit into from
Aug 3, 2022

Conversation

lenticularis39
Copy link
Contributor

@lenticularis39 lenticularis39 commented Aug 1, 2022

Use YY_BUF_SIZE instead of yyleng to correctly get the size of flex
buffer in recursive macro processing.

Fixes #2304

Checklist
  • Language changes are updated in man/adoc/bpftrace.adoc and if needed in docs/reference_guide.md
  • User-visible and non-trivial changes updated in CHANGELOG.md
  • The new behaviour is covered by tests

Use YY_BUF_SIZE instead of yyleng to correctly get the size of flex
buffer in recursive macro processing.

Fixes bpftrace#2304
@lenticularis39 lenticularis39 force-pushed the fix-flex-buffer-size-check branch from 01ab87c to 2d5ecba Compare August 1, 2022 08:44
@fbs fbs merged commit 05cfa8e into bpftrace:master Aug 3, 2022
aktau added a commit to aktau/dotfiles that referenced this pull request Aug 8, 2022
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

Successfully merging this pull request may close these issues.

Macro recursion limit reached for very simple macro in <linux/sched.h>
3 participants