[Bro-Dev] [JIRA] (BIT-1164) Memory Allocation bug in cq.c

Adam Slagell (JIRA) jira at bro-tracker.atlassian.net
Thu Mar 20 13:08:44 PDT 2014


     [ https://bro-tracker.atlassian.net/browse/BIT-1164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Slagell updated BIT-1164:
------------------------------

    Resolution: Invalid
        Status: Closed  (was: Open)

> Memory Allocation bug in cq.c
> -----------------------------
>
>                 Key: BIT-1164
>                 URL: https://bro-tracker.atlassian.net/browse/BIT-1164
>             Project: Bro Issue Tracker
>          Issue Type: Problem
>          Components: Bro
>    Affects Versions: git/master, 2.1, 2.2
>            Reporter: Adam Slagell
>            Assignee: Jon Siwek
>            Priority: High
>             Fix For: 2.3
>
>
> Line 107 in cq.c
> Seems problematic to use a pointer after it is freed. Extra credit if you know how I found this.
> if (cq_resize(hp, 0) < 0) {
> 		free(hp);
> 		memory_allocation -= sizeof(*hp);
> 		return (NULL);
> 	}



--
This message was sent by Atlassian JIRA
(v6.2-OD-10-004-WN#6253)


More information about the bro-dev mailing list