VirtualBox

Ticket #15948 (closed defect: fixed)

Opened 8 months ago

Last modified 7 months ago

vbox segfaults with large numbers of search domains in /etc/resolv.conf => Fixed in SVN

Reported by: nuxi Owned by:
Priority: minor Component: network
Version: VirtualBox 5.1.6 Keywords:
Cc: Guest type: other
Host type: Linux

Description

While vbox makes sure it doesn't read in more than RCPS_MAX_NAMESERVERS nameserver lines when parsing /etc/resolv.conf, it doesn't enforce a similar check against RCPS_MAX_SEARCHLIST for search domains. When using a VPN, sometimes absurd numbers of search domains happen (glibc only supports 6) and vbox will just segfault.

I've made a fix (the resolv.conf parser helpfully compiles as a standalone program, which made locating the problematic chunk trivial) that I'll attach to this bug. Obligatory "patch is under the MIT license" because I did read the contributer guidelines.

Attachments

resolvconf.patch Download (798 bytes) - added by nuxi 8 months ago.
fix to resolv.conf parser

Change History

Changed 8 months ago by nuxi

fix to resolv.conf parser

comment:1 Changed 8 months ago by vushakov

  • Summary changed from vbox segfaults with large numbers of search domains in /etc/resolv.conf to vbox segfaults with large numbers of search domains in /etc/resolv.conf => Fixed in SVN

Thanks!

comment:2 Changed 7 months ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

Fix is part of VBox 5.1.8.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use