[Bug 224103] A possible out of bounds of memory in netinet/libalias/alias_sctp.c.
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Dec 5 07:14:39 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224103
Bug ID: 224103
Summary: A possible out of bounds of memory in
netinet/libalias/alias_sctp.c.
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: kern
Assignee: freebsd-bugs at FreeBSD.org
Reporter: logwang at tencent.com
In AliasSctpInit():
la->sctpNatTimer.TimerQ = sn_calloc(SN_TIMER_QUEUE_SIZE, sizeof(struct
sctpTimerQ));
since SN_TIMER_QUEUE_SIZE is defined as SN_MAX_TIMER+2, and sn_calloc is
defined as sn_malloc(x * n) if _SYS_MALLOC_H_ is defined, the size of calloced
memory will be wrong, because the macro will be expanded to
SN_MAX_TIMER+2*sizeof(struct sctpTimerQ).
This was found when i compiled the code on Linux, i don't know whether it's a
problem or not if compiled on FreeBSD system.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list