Ticket #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
Change History
Changed 6 years ago by nuxi
-
attachment
resolvconf.patch
added
Note: See
TracTickets for help on using
tickets.
fix to resolv.conf parser