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

"Invalid call to builtin_object_size" warning #143

Open
nathanschmidt opened this issue May 20, 2023 · 0 comments
Open

"Invalid call to builtin_object_size" warning #143

nathanschmidt opened this issue May 20, 2023 · 0 comments
Labels

Comments

@nathanschmidt
Copy link

nathanschmidt commented May 20, 2023

On OS X, calls to functions such as strcpy are usually replaced by functions like __builtin___strcpy_chk, which perform additional bounds checking through __builtin_object_size. When analyzing such string manipulating functions, Goblint issues the warning "invalid call to builtin_object_size", even if both the analysis and the usage of e.g. strcpy in the C-program being analyzed look sane.

This happens for the regression test 01-string_literals.c in PR goblint/analyzer#1048. @michael-schwarz took a closer look and it seems this issue comes from CIL.

@sim642 sim642 added the bug label May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants