FreeBSD/src 180b0dc (r343295)sys/netpfil/pf pf_ioctl.c

pf: Validate psn_len in DIOCGETSRCNODES

psn_len is controlled by user space, but we allocated memory based on it.
Check how much memory we might need at most (i.e. how many source nodes we
have) and limit the allocation to that.

Reported by:    markj
MFC after:      1 week
DeltaFile
+11-7sys/netpfil/pf/pf_ioctl.c
+11-71 files

UnifiedSplitRaw