-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
[P1] Segmentation fault on -fanalyzer
#146
Comments
Another segfault, I didn't check if it's the same root cause: #include <ownership.h>
typedef struct Foo {
int *owner p;
} Foo;
Foo *owner foo_new(void) {
Foo *owner foo = (Foo *owner)calloc(1, sizeof(Foo));
if (foo == NULL) {
return NULL;
}
return foo;
} |
The static variables state were not begin tracked. struct a {
char b;
} c;
void d() {
struct a e = c;
} here is the plan... |
Cool, then the second one is a separate bug. |
this sample also needs attention void d() {
static struct a { char b;} c;
struct a e = c;
} |
-fanalyzer
-fanalyzer
I fixed the segmentation fault, |
created |
segmentation fault fixed |
crash.c:
Invocation:
cake -fanalyzer crash.c
Segfault happens here:
cake/src/object.c
Line 633 in e322139
The text was updated successfully, but these errors were encountered: