| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In get_option(): don't read past the end of the option buffer.
Also add a small unittest to verify sane behaviour for the above.
The dhcpcd code is not easily refactored into a library, nor is it
entirely possible to include some header files directly since some
structures use C++ reserved keywords ("new") for variable names.
In print_option(): use of snprintf() returns the length that
/would/ have been written. Add checks that the output buffer
is not overrun when printing.
This fixes CVE-2014-7912 and CVE-2014-7913
Bug: 18356137
Bug: 18356135
Change-Id: I0f907b8a952208749226ba034a416d773e068f8a
Tested-by: Moritz Bandemer <replicant@posteo.mx>
|
|
|
|
|
| |
Change-Id: I98c378688be723a2a602ec17c26bc13f2fd83cc8
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
|
|
|
|
|
|
|
|
|
|
| |
Explicitly include 'domain_name_servers' and 'domain_name' in the list
of parameters requested in the DNS request.
Without this some DHCP servers may skip the DNS entries in the DHCP replies.
Change-Id: I4c6463acd4f0719984a8cab9903ce50fcf59405a
Signed-off-by: tk.mun <tk.mun@samsung.com>
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
|
|
|
|
|
| |
Change-Id: Ia232992f6e18a1494ad12e38c95fd0d2a7520e8e
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
|
|
|
|
|
| |
Change-Id: I949331c7aad91b125decd51da4041983d3a352bc
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
|
|
|
|
| |
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
|
| |
|
| |
|
| |
|
|
|