Self-registration is disabled due to spam issue (mail gorcunov@gmail.com or hpa@zytor.com to create an account)
Bug 3392758 - AddressSanitizer: 1 memory leaks of nasm_calloc()
Summary: AddressSanitizer: 1 memory leaks of nasm_calloc()
Status: OPEN
Alias: None
Product: NASM
Classification: Unclassified
Component: Assembler (show other bugs)
Version: unspecified
Hardware: All All
: Medium normal
Assignee: nobody
URL:
Depends on:
Blocks:
 
Reported: 2021-05-19 01:10 PDT by cfenice
Modified: 2021-05-19 01:10 PDT (History)
4 users (show)

Obtained from: Binary from nasm.us
Generated by: ---
Bug category:
Breaks existing code: ---


Attachments
./nasm -f bin $POC -o ./tmp (1.61 KB, text/plain)
2021-05-19 01:10 PDT, cfenice
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cfenice 2021-05-19 01:10:55 PDT
Created attachment 411820 [details]
./nasm -f bin $POC -o ./tmp

$ ./nasm -f bin $POC -o ./tmp  

ASAN info:
=================================================================
==31075==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 2816 byte(s) in 16 object(s) allocated from:
    #0 0x7f7e84d2f79a in __interceptor_calloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x9879a)
    #1 0x409d46 in nasm_calloc nasmlib/alloc.c:72

Direct leak of 48 byte(s) in 12 object(s) allocated from:
    #0 0x7f7e84d2f602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x409d0b in nasm_malloc nasmlib/alloc.c:55

Indirect leak of 18816 byte(s) in 450 object(s) allocated from:
    #0 0x7f7e84d2f79a in __interceptor_calloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x9879a)
    #1 0x409d46 in nasm_calloc nasmlib/alloc.c:72

SUMMARY: AddressSanitizer: 21680 byte(s) leaked in 478 allocation(s).