Commit 6f1a6b21 authored by Natanael Copa's avatar Natanael Copa

main/busybox: fix a regression in udhcpc

The cve-2011-2716 fix introduced a regression.
It was fixed upstream with:
http://git.uclibc.org/busybox/commit/networking/udhcp/dhcpc.c?id=d2266d43bfe3cd9a40deb50dfe80ab679d2def0c

fixes #1346
parent c60f1a9d
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=busybox
pkgver=1.19.4
pkgrel=5
pkgrel=6
pkgdesc="Size optimized toolbox of many common UNIX utilities"
url=http://busybox.net
arch="all"
......@@ -26,6 +26,7 @@ source="http://busybox.net/downloads/$pkgname-$pkgver.tar.bz2
0001-unzip-ignore-chmod-errors-so-unzipping-on-FAT-works.patch
0001-ifupdown-support-metric-for-static-default-gw.patch
CVE-2011-2716.patch
CVE-2011-2716-2.patch
busyboxconfig"
......@@ -102,4 +103,5 @@ b0977368029587bab23067f0267ae309 0001-tar-Implement-no-recursion.patch
d13491d62d8987f79c385f6fdd94836a 0001-unzip-ignore-chmod-errors-so-unzipping-on-FAT-works.patch
ce7fcd5eee5b0e9bf67108b241c09ea2 0001-ifupdown-support-metric-for-static-default-gw.patch
4976d3baa234fb59504f084817d89f01 CVE-2011-2716.patch
f6a2b1e5443905744b76df1d1669d160 CVE-2011-2716-2.patch
42e2f49483e650193c0e142ade7de142 busyboxconfig"
From d2266d43bfe3cd9a40deb50dfe80ab679d2def0c Mon Sep 17 00:00:00 2001
From: Denys Vlasenko <vda.linux@googlemail.com>
Date: Sun, 22 Apr 2012 01:37:01 +0000
Subject: udhcpc: fix improper size calculation for OPTION_STRING_HOST
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
---
(limited to 'networking/udhcp/dhcpc.c')
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
index 2f2016c..ddb328d 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -101,6 +101,7 @@ static const uint8_t len_of_option_as_string[] = {
[OPTION_STATIC_ROUTES ] = sizeof("255.255.255.255/32 255.255.255.255 "),
[OPTION_6RD ] = sizeof("32 128 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 255.255.255.255 "),
[OPTION_STRING ] = 1,
+ [OPTION_STRING_HOST ] = 1,
#if ENABLE_FEATURE_UDHCP_RFC3397
[OPTION_DNS_STRING ] = 1, /* unused */
/* Hmmm, this severely overestimates size if SIP_SERVERS option
--
cgit v0.9.0.1-2-gef13
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment