[pcre-dev] [Bug 1316] New: Allocation failure in SLJIT doesn…

Top Page
Delete this message
Author: Giuseppe D'Angelo
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 1316] New: Allocation failure in SLJIT doesn't release the allocator lock?
------- 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: ph10@???
        ReportedBy: dangelog@???
                CC: pcre-dev@???



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