Skip to content

runtime error: applying non-zero offset 1 to null pointer #104

Closed
@J-Richter

Description

@J-Richter

clang with -fsanitize=undefined produces the error "include/small/lf_lifo.h:86:59: runtime error: applying non-zero offset 1 to null pointer" when running our test suite.
The error is indirectly triggered by calling slab_cache_destroy. I can try to provide a simplified test case if needed.
Source of lf_lifo.h:86 is

void *newhead = (char *) elem + aba_value((char *) tail + 1);

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions