If in parse_mac2str from ulogd_filter_HWHDR.c I print the array index
being used okey - STARTKEY is 2.  I'm quite rusty on C arrays but since
the elements are 0 based I think this is actually outside the length
used to declare hwmac_str.  If I declare hwmac_str like this then I can
revert to -D_FORTIFY_SOURCE=3.

static char hwmac_str[(MAX_KEY - START_KEY) + 1][HWADDR_LENGTH];

I'm not sure what the correct fix is though.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080677

Title:
  buffer overflow leads to crash 2.0.8-2build1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ulogd2/+bug/2080677/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to