| Message ID | 20250728202721.3381444-1-toumi.mednour@gmail.com |
|---|---|
| State | Accepted |
| Headers | show
Return-Path: <swupdate+bncBD5YFV6R3EJBBTVWUHCAMGQEL2YWJZA@googlegroups.com>
X-Original-To: incoming@patchwork.ozlabs.org
Delivered-To: patchwork-incoming@legolas.ozlabs.org
Authentication-Results: legolas.ozlabs.org;
dkim=pass (2048-bit key;
unprotected) header.d=googlegroups.com header.i=@googlegroups.com
header.a=rsa-sha256 header.s=20230601 header.b=spiXaTjl;
dkim=pass (2048-bit key;
unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256
header.s=20230601 header.b=UE6sE/Xv;
dkim-atps=neutral
Authentication-Results: legolas.ozlabs.org;
spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com
(client-ip=2607:f8b0:4864:20::839; helo=mail-qt1-x839.google.com;
envelope-from=swupdate+bncbd5yfv6r3ejbbtvwuhcamgqel2ywjza@googlegroups.com;
receiver=patchwork.ozlabs.org)
Received: from mail-qt1-x839.google.com (mail-qt1-x839.google.com
[IPv6:2607:f8b0:4864:20::839])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384)
(No client certificate requested)
by legolas.ozlabs.org (Postfix) with ESMTPS id 4brkMK5Tjpz1xvP
for <incoming@patchwork.ozlabs.org>; Tue, 29 Jul 2025 15:25:32 +1000 (AEST)
Received: by mail-qt1-x839.google.com with SMTP id
d75a77b69052e-4ab969af6e3sf64060651cf.2
for <incoming@patchwork.ozlabs.org>;
Mon, 28 Jul 2025 22:25:42 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1753766736; cv=pass;
d=google.com; s=arc-20240605;
b=FXWTCfE0MCJ67tGAiqczvZfVlX1lwiWu3VbRUPaZWzthBuLL5K5dPt6g7fgRXFBYlp
UM+E9t9YorF/WwsvhiFXaBOt86vv+UxRKKDdTd+tmdp/YRgxFvUtYuMsfySfjh8Ox17i
lCEVHilGDVJ1kusVqYBUuRi7rKDK7FOkzKWoELKtC2NwN3ioECPx6BlkKGzyvltEb0hx
+kHO824/lWncsqy/XtQnwitjRET8OnIh5BtMuWR95LvFC4O+eUJNG74QjdIauM8tVHFn
J4VUaUfztGndbMKt2E1p8sHXF4EhIDKqjMOlGKOMc59lcE9tlcTNEk/kPRStqlNgb6ZO
PWEQ==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
:list-id:mailing-list:precedence:mime-version:message-id:date
:subject:cc:to:from:sender:dkim-signature:dkim-signature;
bh=RdsodcKz312bgnCJQttLAJ5wkQs/iImwWEEYsKAsZUQ=;
fh=YeG1vEj3Rt/27Yodz+OCA6zA2cuzx5OvYOeADXzqYto=;
b=gdz+Q8H4H4ZkQtMb0UiWzjUe85qVO0vKir1xwdkarjOKxGCF/YPhwxnQy7SaVphWeT
a5tnHAcZ/AKT1ps//TorqALqxqiGPyxuiaEKajaihRBV2c/31HIRyCkvj2DOpJm7k67c
6v9+lv8zLflqPXFa33T9rOaAOxRmZOMq3z5qZ4fbZ3AM2knIRqnqjjGxf4tdmlELXwoI
5W7EIpJRacsWRIKlAOjp5dDRqVQVDjve5rh7fIbD5XjrfjFQHicudMgVK8UTVxc5thof
jk4p4HxtJvhSWEShzY23YhAOrXLF47nOqIeCxmk8gefh4Qz/bGBUJmMcUOFA9DBK1MX9
ApqQ==;
darn=patchwork.ozlabs.org
ARC-Authentication-Results: i=2; gmr-mx.google.com;
dkim=pass header.i=@gmail.com header.s=20230601 header.b=Uwz3DHiF;
spf=pass (google.com: domain of toumi.mednour@gmail.com designates
2a00:1450:4864:20::335 as permitted sender)
smtp.mailfrom=toumi.mednour@gmail.com;
dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com;
dara=pass header.i=@googlegroups.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=googlegroups.com; s=20230601; t=1753766736; x=1754371536;
darn=patchwork.ozlabs.org;
h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
:list-id:mailing-list:precedence:x-original-authentication-results
:x-original-sender:mime-version:message-id:date:subject:cc:to:from
:sender:from:to:cc:subject:date:message-id:reply-to;
bh=RdsodcKz312bgnCJQttLAJ5wkQs/iImwWEEYsKAsZUQ=;
b=spiXaTjlPupblEZTddCHvUm0kEEjUExm/LLJMIw0c78lamGjP2XXig9wESLDuxI3LP
t3GwDIGWH+C1abZgalfGY9zneEU/N9SDh0qyJ3vQwuyvqIjcK9sYENp4Iu68AC61evA2
sPYr9mb0Lsi9zXjVitp3wQxw+uGO35mzZ2+bcSU6HkHgLJI3sAcIDe0jyyX7yU4a74VS
LncpJGwO+pEujokkolNzvyR4lFBP1+3kbTBaSmsaRrj+j1diLLUcHP+cTuCc/lERzhKa
4w+t+edn8KyHkvrK63MK2QT5B4GU9F2BNGDzg0KFFVzWzg/4AloA0POVVcGSUuB9qMOT
jpxg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1753766736; x=1754371536;
darn=patchwork.ozlabs.org;
h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
:list-id:mailing-list:precedence:x-original-authentication-results
:x-original-sender:mime-version:message-id:date:subject:cc:to:from
:from:to:cc:subject:date:message-id:reply-to;
bh=RdsodcKz312bgnCJQttLAJ5wkQs/iImwWEEYsKAsZUQ=;
b=UE6sE/XvIY+AwoZ4G3M0XTihyRIsefctYCXfqdpcBNTZ5jMD7y9petSIBlEjU9YMuS
HbmEB3qJW59EYLZ9EUte8UmYeJYb5p78nf+QtYgHRFphCbBP+sEjz42gJ5RQdxPGpJu0
GGkky5NJwKm3zGwYr1lVXZRwvNLSngurYQwIR3BtQbqWNvs+u6lSG2c02X2TGe+CGVGk
tKUDV+JksqTgQkwsT84wcdNKskfCsl7IrU3HvylYKQ811lmL/P3LNJzH69U+VBDcIZDV
l/YwrTGEhnAxdUpR4gAg3P+x5q0Pk/BmKbHrr+/opWIcptU2N4MldmICV/h7lUJpY9Y8
GTmw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1753766736; x=1754371536;
h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
:list-id:mailing-list:precedence:x-original-authentication-results
:x-original-sender:mime-version:message-id:date:subject:cc:to:from
:x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date
:message-id:reply-to;
bh=RdsodcKz312bgnCJQttLAJ5wkQs/iImwWEEYsKAsZUQ=;
b=BHippeo50dNUr8Af0DR6zbC3380wJBMnIVgFN+gAVoYaDBWWlFFcJtkt42t+PnKJyg
1Blk3F+tp7QE4JPQiI3YeJKWyXilS5AuvnnSTTT03GPGYgdJuzIEE9SGYFxZsUw07ziL
OpIQa6ItcOIlq5ZW0bSSSLUnI+zQNfOcRHFxDYoPQJhdsmZfaBITTc+K+FKp/mN0rqfH
wN5pvMtPN2m2GqymDY6e2XFjiSjCKmgXaxOpPw1KOGZ5Won15TenNp/PnB65jxzjxX+Q
Mx9jr0yv4i54pY7S6Bgg9A7S2SidsS5hm8kcMaab4yHsSErHXP4iC7sGzJnxnXZnKY/8
Dg4w==
Sender: swupdate@googlegroups.com
X-Forwarded-Encrypted: i=2;
AJvYcCWblTec3r3SnZdp5CFIv92/GyxWM4yi3Pj9FapqvBn5Qj5BdmTeHzfRhc2ZpiKr+NIxquV5hpQvkw==@patchwork.ozlabs.org
X-Gm-Message-State: AOJu0YzzxQz3721bBJ2BZm/GkKETNisbom20TNxemoRhIUEP2eRJPGKU
fWtLWJ/UfrJ9Es8fk36eYim1+GtLQqjeqj3hf+VwlvryRFPvuybJ8wqq
X-Google-Smtp-Source:
AGHT+IEA5Ea4erEFKomOFslYxKkVkQV9wAHlMpxMsTZezVUoc3t4lmmnN9WNQVuLttvcTcRcmL7a7Q==
X-Received: by 2002:ac8:7f46:0:b0:4ab:aa35:2005 with SMTP id
d75a77b69052e-4ae8ef868a1mr158469401cf.22.1753766735874;
Mon, 28 Jul 2025 22:25:35 -0700 (PDT)
X-BeenThere: swupdate@googlegroups.com;
h=AZMbMZc0DI2MHw6eHBjaXOGhbtXDjXTurcruIh2kR8n8o9sWdQ==
Received: by 2002:ac8:5a56:0:b0:4a8:17dc:d1ee with SMTP id
d75a77b69052e-4ae7bb999a9ls75565311cf.0.-pod-prod-08-us;
Mon, 28 Jul 2025 22:25:33 -0700 (PDT)
X-Received: by 2002:a05:620a:a107:b0:7e3:57ea:c6d7 with SMTP id
af79cd13be357-7e63bf6af30mr2181282685a.15.1753766733818;
Mon, 28 Jul 2025 22:25:33 -0700 (PDT)
Received: by 2002:a05:600c:1c25:b0:456:53b:5b5e with SMTP id
5b1f17b1804b1-4586767246fms5e9;
Mon, 28 Jul 2025 13:27:26 -0700 (PDT)
X-Received: by 2002:a05:600c:46ce:b0:456:1a41:f932 with SMTP id
5b1f17b1804b1-45876438d2emr85168555e9.22.1753734444678;
Mon, 28 Jul 2025 13:27:24 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1753734444; cv=none;
d=google.com; s=arc-20240605;
b=kavAtMywHgyCri0pKxlZKeeI2wdoJD0ynSkdMjxhPR9BeRAAOm34Z+OC1/4tLYBjpK
XS6Imj8PSzQP3Du6okyTQJDqBPRx2tlfWGzMzMiDfXN31awjYWEKp+/VC91oJsLvbX5B
VkOQWFwZR4vQGTtzmyAMdA6q0tRIgfPve7yvLmiTyXotH1w/qR4nE9xkpL6HPT2HLg0c
nXPqirGAkoo/1s8kwpRxMWlCTyYiGLwTvZme7Qq9uPfPgNVRb9TDTJnCbQpmR90f0ZG0
bd+rzxYH5KX+G6rrJ0bulsyQFxu3wpsURSD2lkKdZ/TDx8IfuSoFCfpdoll20wmGV3AQ
Qdaw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:dkim-signature;
bh=Cbb6gByfwqHe/pI/4xFHj7Bnq5DjVrmGJikxIxv35qM=;
fh=wdARLmiH3F8cELfuslvdLfkO0MANnKemk24kKd5BDYU=;
b=BDjxQHaum1EJHnDIvxquxfb30tN0QeELuqeHo2uj+cVYeEcGK0P2nPFEvX52tMA2VZ
XKgboi1bCJyrvZukrsPdnQ5aM6E5hC5ZWItz0wzsnPsF8SiIx7Ws5gIy45He5HBWAZC+
4bn3641hYXBNFwxr+vuOwH0vOqn5BwGmR0YNR/Ol6uqbHG72gYps6OwhHT3IcbFod0T9
yDOeGsVYYWcJXpyaq2zay1g/wHxkZ2XIMuucCDeZAp7+/IxHoUUr5bFCBYUWxXSRpPHk
5H7EumiBk2iRFLVFIKnbsxg9JC7u4RuT28KoyXq/T+zDqs6ehYnkPZF7qyP90bZKCnc/
Hnlw==;
dara=google.com
ARC-Authentication-Results: i=1; gmr-mx.google.com;
dkim=pass header.i=@gmail.com header.s=20230601 header.b=Uwz3DHiF;
spf=pass (google.com: domain of toumi.mednour@gmail.com designates
2a00:1450:4864:20::335 as permitted sender)
smtp.mailfrom=toumi.mednour@gmail.com;
dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com;
dara=pass header.i=@googlegroups.com
Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com.
[2a00:1450:4864:20::335])
by gmr-mx.google.com with ESMTPS id
5b1f17b1804b1-4588d8708acsi29455e9.0.2025.07.28.13.27.24
for <swupdate@googlegroups.com>
(version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
Mon, 28 Jul 2025 13:27:24 -0700 (PDT)
Received-SPF: pass (google.com: domain of toumi.mednour@gmail.com designates
2a00:1450:4864:20::335 as permitted sender) client-ip=2a00:1450:4864:20::335;
Received: by mail-wm1-x335.google.com with SMTP id
5b1f17b1804b1-451d54214adso31486515e9.3
for <swupdate@googlegroups.com>; Mon, 28 Jul 2025 13:27:24 -0700 (PDT)
X-Gm-Gg: ASbGncuC1HyzRiAfhFqWKtBH1DCyBkpa8pNefg+GgX0kVqHXS513q+nmu4mNwDLVFAV
Me4pj99IUx0exaBcYtVmmBAXUtrjqP3B7vxQESeZwhxB4jnvBpuW3fcdJ5F38A6U3sHNcx2lpBA
Pd5p8BpD7neVUOibJMaOQoVbv/bWNsjXUW0xXJRgFaOJzCF6hdu4GQG69kFTqTYr5cj36wI09Sz
D9fL+lGYgSo1vX5nxUrFXMBBKuLtcW/LwO7gmYy/NXp8S1h64Immx+kEIoFRckhZkLhnnmkkoD3
IbU1jCgg54b95A/YsE5TFCel3xkZWfZvgpUYlBf8AipYDUtZJnt4m23eL6sAyeYoDo4hFD/w2Kh
igOvg0iMDkKjkFj3LwVRN+ws6L31W0VODRckG5pqHZGm+hWqJsTCUvUAjhVjhJg==
X-Received: by 2002:a05:600c:3f09:b0:456:1a69:94fd with SMTP id
5b1f17b1804b1-458855d3dbemr56857825e9.0.1753734443605;
Mon, 28 Jul 2025 13:27:23 -0700 (PDT)
Received: from softathome.com (183.148.2.93.rev.sfr.net. [93.2.148.183])
by smtp.gmail.com with ESMTPSA id
ffacd0b85a97d-3b778f104ffsm9603092f8f.66.2025.07.28.13.27.23
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Mon, 28 Jul 2025 13:27:23 -0700 (PDT)
From: toumi.mednour@gmail.com
To: swupdate@googlegroups.com
Cc: mohamed.toumi_ext+nodisclaimer@softathome.com,
paul.henrys_ext+nodisclaimer@softathome.com,
Mohamed-nour Toumi <mohamed.toumi_ext@softathome.com>
Subject: [swupdate] [PATCH] libubootenv: fix segfault due to uninitialized
pointer in config parser
Date: Mon, 28 Jul 2025 22:27:21 +0200
Message-Id: <20250728202721.3381444-1-toumi.mednour@gmail.com>
X-Mailer: git-send-email 2.34.1
MIME-Version: 1.0
X-Original-Sender: toumi.mednour@gmail.com
X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass
header.i=@gmail.com header.s=20230601 header.b=Uwz3DHiF; spf=pass
(google.com: domain of toumi.mednour@gmail.com designates
2a00:1450:4864:20::335
as permitted sender) smtp.mailfrom=toumi.mednour@gmail.com; dmarc=pass
(p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com;
dara=pass header.i=@googlegroups.com
Content-Type: text/plain; charset="UTF-8"
Precedence: list
Mailing-list: list swupdate@googlegroups.com;
contact swupdate+owners@googlegroups.com
List-ID: <swupdate.googlegroups.com>
X-Google-Group-Id: 605343134186
List-Post: <https://groups.google.com/group/swupdate/post>,
<mailto:swupdate@googlegroups.com>
List-Help: <https://groups.google.com/support/>,
<mailto:swupdate+help@googlegroups.com>
List-Archive: <https://groups.google.com/group/swupdate
List-Subscribe: <https://groups.google.com/group/swupdate/subscribe>,
<mailto:swupdate+subscribe@googlegroups.com>
List-Unsubscribe:
<mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>,
<https://groups.google.com/group/swupdate/subscribe>
|
| Series |
libubootenv: fix segfault due to uninitialized pointer in config parser
|
expand
|
diff --git a/src/uboot_env.c b/src/uboot_env.c index d8b93da..9641800 100644 --- a/src/uboot_env.c +++ b/src/uboot_env.c @@ -871,6 +871,7 @@ int libuboot_read_config_ext(struct uboot_ctx **ctxlist, const char *config) tmp, #else (void)len; + tmp = NULL; ret = sscanf(line, "%ms %lli %zx %zx %lx %d", &tmp, #endif