VirtualBox

Opened 8 years ago

Closed 8 years ago

#15948 closed defect (fixed)

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

Reported by: nuxi Owned by:
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 (1)

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

Download all attachments as: .zip

Change History (3)

by nuxi, 8 years ago

Attachment: resolvconf.patch added

fix to resolv.conf parser

comment:1 by Valery Ushakov, 8 years ago

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

Thanks!

comment:2 by Frank Mehnert, 8 years ago

Resolution: fixed
Status: newclosed

Fix is part of VBox 5.1.8.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use