Projects
openEuler:24.03
bash
_service:tar_scm:Fix-for-a-crash-if-one-of-the-...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:Fix-for-a-crash-if-one-of-the-expressions-in-an-arit.patch of Package bash
From 708cc7f694738c6dde2dbb5317749a5a9e6d26e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=82=96=E5=9C=A8?= <xiaozai@kylinos.cn> Date: Wed, 8 May 2024 17:04:43 +0800 Subject: [PATCH] fix for a crash if one of the expressions in an arithmetic for command expands to NULL --- execute_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/execute_cmd.c b/execute_cmd.c index ce221a2..46b671d 100644 --- a/execute_cmd.c +++ b/execute_cmd.c @@ -3056,7 +3056,7 @@ eval_arith_for_expr (l, okp) temp = expand_arith_string (expr, Q_DOUBLE_QUOTES|Q_ARITH); if (l->next) free (expr); - new = make_word_list (make_word (temp), (WORD_LIST *)NULL); + new = make_word_list (make_word (temp ? temp : ""), (WORD_LIST *)NULL); free (temp); if (new) -- 2.33.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2