Page MenuHomeFreeBSD

D16527.diff
No OneTemporary

D16527.diff

Index: head/sys/security/mac/mac_framework.c
===================================================================
--- head/sys/security/mac/mac_framework.c
+++ head/sys/security/mac/mac_framework.c
@@ -586,7 +586,9 @@
mac_check_structmac_consistent(struct mac *mac)
{
- if (mac->m_buflen > MAC_MAX_LABEL_BUF_LEN)
+ /* Require that labels have a non-zero length. */
+ if (mac->m_buflen > MAC_MAX_LABEL_BUF_LEN ||
+ mac->m_buflen <= sizeof(""))
return (EINVAL);
return (0);

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 22, 2:29 AM (18 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15549974
Default Alt Text
D16527.diff (486 B)

Event Timeline