[ovs-git] [ovn-org/ovn] 502142: Fix seg fault while encoding DHCP domain search op...

Dhathri Purohith noreply at github.com
Wed Jul 1 06:09:44 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/ovn-org/ovn
  Commit: 502142281e9d77743e5270a68b2a447b8001607d
      https://github.com/ovn-org/ovn/commit/502142281e9d77743e5270a68b2a447b8001607d
  Author: Dhathri Purohith <dhathri.purohith at nutanix.com>
  Date:   2020-07-01 (Wed, 01 Jul 2020)

  Changed paths:
    M lib/actions.c

  Log Message:
  -----------
  Fix seg fault while encoding DHCP domain search option.

Some versions of strtok_r make the original string NULL at the
end of parsing. Adding Null check before ovs_strlcpy() to
prevent segfault in such cases.

Fixes: d79bb92c4b49 ("Add support for DHCP domain search option (119)")

Signed-off-by: Dhathri Purohith <dhathri.purohith at nutanix.com>
Acked-by: Ankur Sharma <ankur.sharma at nutanix.com>
Signed-off-by: Numan Siddique <numans at ovn.org>




More information about the git mailing list