------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1316
           Summary: Allocation failure in SLJIT doesn't release the
                    allocator lock?
           Product: PCRE
           Version: 8.31
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


In the sljit_malloc_exec function in sljitExecAllocator.c there code that
actually performs the allocation is

    header = (struct block_header*)alloc_chunk(chunk_size);
    PTR_FAIL_IF(!header);

but that will return without calling allocator_release_lock() (which instead is
called before the other return paths). So probably the PTR_FAIL_IF macro can't
be used there (but the check done manually).

Thanks,
Giuseppe D'Angelo


-- 
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email

-- 
## List details at https://lists.exim.org/mailman/listinfo/pcre-dev 

Reply via email to