Questions tagged [address-sanitizer]

AddressSanitizer (ASAN) is a fast memory error detector for issues such as out-of-bounds access and more.

AddressSanitizer (ASAN) is a fast memory error detector and consists of compile time instrumentation and a runtime library.

See also:

530 questions
-2
votes
1 answer

How do I continue address sanitizer when SEGV on unknown address happens?

enter image description here I already add ASAN_OPTIONS='halt_on_error=0', but it just aborts.
-3
votes
2 answers

Segmentation fault and address sanitizer

something strange happens in my code. I'm using fgets to get each line of a file and then I use strtok to parse it. using Ubuntu, if I compile using gcc -o name name.c, it gives me segmentation fault. If I compile using -fsanitize=address, the code…
Pit2752
  • 1
  • 1
  • 2
-3
votes
1 answer

C++ Opencv AddressSanitizer: SEGV on unknown address 0x000000000040

I can't get my head around this error. I'm working on a project using opencv trying to use hog and svm, inspired by this example: https://docs.opencv.org/3.4.1/d5/d77/train_HOG_8cpp-example.html#_a33 (the code is really similar). The error is in the…
user7891436
-4
votes
1 answer

heap-buffer-overflow with fprintf

I'm updating my question, very sorry for asking it the wrong way. Now I could distill my problem into a single self-contained piece of code: #include #include static __inline__ char* fileRead(char* file){ FILE* fp; …
nff
  • 33
  • 5
-4
votes
1 answer

how to correctly cast uint32_t to unsigned

I'm trying to fix some C++ code with address sanitizer. The code says: unsigned result = *(uint32_t*)data; And the sanitizer gives: runtime error: load of misaligned address 0x6280033f410a for type 'uint32_t', which requires 4 byte alignment How…
user1600826
1 2 3
35
36