Message ID | 20191114213302.1DB3A10002@helium.openadk.org |
---|---|
State | Accepted |
Headers | show
Return-Path: <devel-bounces@uclibc-ng.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=uclibc-ng.org (client-ip=89.238.66.15; helo=helium.openadk.org; envelope-from=devel-bounces@uclibc-ng.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=baesystems.com Received: from helium.openadk.org (helium.openadk.org [89.238.66.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47DZTk3fl8z9sPk for <incoming@patchwork.ozlabs.org>; Fri, 15 Nov 2019 08:33:11 +1100 (AEDT) Received: from helium.openadk.org (localhost [IPv6:::1]) by helium.openadk.org (Postfix) with ESMTP id 1DB3A10002; Thu, 14 Nov 2019 22:33:02 +0100 (CET) X-Original-To: devel@uclibc-ng.org Delivered-To: devel@helium.openadk.org Received: from dmzms99801.na.baesystems.com (dmzms99801.na.baesystems.com [149.32.232.65]) by helium.openadk.org (Postfix) with ESMTPS id 885A610002 for <devel@uclibc-ng.org>; Thu, 14 Nov 2019 22:32:50 +0100 (CET) Authentication-Results: dmzms99801.na.baesystems.com; spf=None smtp.mailfrom=john.ata@baesystems.com; spf=None smtp.helo=postmaster@nhnams85001.na.baesystems.com Received-SPF: None (dmzms99801.na.baesystems.com: no sender authenticity information available from domain of john.ata@baesystems.com) identity=mailfrom; client-ip=10.37.193.66; receiver=dmzms99801.na.baesystems.com; envelope-from="john.ata@baesystems.com"; x-sender="john.ata@baesystems.com"; x-conformance=spf_only Received-SPF: None (dmzms99801.na.baesystems.com: no sender authenticity information available from domain of postmaster@nhnams85001.na.baesystems.com) identity=helo; client-ip=10.37.193.66; receiver=dmzms99801.na.baesystems.com; envelope-from="john.ata@baesystems.com";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d="png'150?scan'150,208,217,150";a="238418577" From: "Ata, John (US)" <john.ata@baesystems.com> To: "devel@uclibc-ng.org" <devel@uclibc-ng.org> Thread-Topic: getenv() bug Thread-Index: AdWajM5b9gJtfLhrSeKfifQgjAWYCg== Date: Thu, 14 Nov 2019 21:32:46 +0000 Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [10.34.3.105] MIME-Version: 1.0 Subject: [uclibc-ng-devel] getenv() bug X-BeenThere: devel@uclibc-ng.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: uClibc-ng Development <devel.uclibc-ng.org> List-Unsubscribe: <https://mailman.uclibc-ng.org/cgi-bin/mailman/options/devel>, <mailto:devel-request@uclibc-ng.org?subject=unsubscribe> List-Archive: <http://mailman.uclibc-ng.org/pipermail/devel/> List-Post: <mailto:devel@uclibc-ng.org> List-Help: <mailto:devel-request@uclibc-ng.org?subject=help> List-Subscribe: <https://mailman.uclibc-ng.org/cgi-bin/mailman/listinfo/devel>, <mailto:devel-request@uclibc-ng.org?subject=subscribe> Content-Type: multipart/mixed; boundary="===============3250895707156438600==" Errors-To: devel-bounces@uclibc-ng.org Sender: "devel" <devel-bounces@uclibc-ng.org> Message-Id: <20191114213302.1DB3A10002@helium.openadk.org> |
Series |
[uclibc-ng-devel] getenv() bug
|
expand
|
--- uclibc/libc/stdlib/getenv.c 2019-11-13 17:22:26.260187664 -0500 +++ uclibc/libc/stdlib/getenv.c 2019-11-13 17:22:39.376111771 -0500 @@ -20,7 +20,7 @@ return NULL; len = strlen(var); while(*ep) { - if (memcmp(var, *ep, len) == 0 && (*ep)[len] == '=') { + if (strncmp(var, *ep, len) == 0 && (*ep)[len] == '=') { return *ep + len + 1; } ep++;