Opened 9 years ago
Closed 9 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)
Change History (3)
by , 9 years ago
Attachment: | resolvconf.patch added |
---|
comment:1 by , 9 years ago
Summary: | vbox segfaults with large numbers of search domains in /etc/resolv.conf → vbox segfaults with large numbers of search domains in /etc/resolv.conf => Fixed in SVN |
---|
Thanks!
fix to resolv.conf parser