Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AA3D6C433EF for ; Fri, 19 Nov 2021 07:47:44 +0000 (UTC) Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5802461B1E for ; Fri, 19 Nov 2021 07:47:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5802461B1E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=jv-coder.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.linux.it Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 24D5F3C8989 for ; Fri, 19 Nov 2021 08:47:43 +0100 (CET) Received: from in-4.smtp.seeweb.it (in-4.smtp.seeweb.it [IPv6:2001:4b78:1:20::4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id C22143C89B4 for ; Fri, 19 Nov 2021 08:46:17 +0100 (CET) Received: from mail.jv-coder.de (mail.jv-coder.de [5.9.79.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-4.smtp.seeweb.it (Postfix) with ESMTPS id 66E821001127 for ; Fri, 19 Nov 2021 08:46:17 +0100 (CET) Received: from ubuntu.localdomain (unknown [188.195.115.12]) by mail.jv-coder.de (Postfix) with ESMTPSA id A1AD09FE82; Fri, 19 Nov 2021 07:46:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jv-coder.de; s=dkim; t=1637307976; bh=8Z1qcAfGOzyI9lBIYRbkUsl1DEG9Sr7OBJMDniXZFeA=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=N9RvplYrCj314FWQ5woPoUkX3X++GPRBT0riqh8lIu6fcv3q1bwfcb5tZyP5BF6Aa IIuFXtM6jvKFrSyVxYzdIKvpUBmn+6A9uV/4AfiYCxp4LEl6ph3IfsOmrApb2wg5FQ YAiWJucpHElaFhc4/R59F29Y8UPD8vYIWYhwTfno= From: Joerg Vehlow To: ltp@lists.linux.it Date: Fri, 19 Nov 2021 08:45:58 +0100 Message-Id: <20211119074602.857595-9-lkml@jv-coder.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211119074602.857595-1-lkml@jv-coder.de> References: <20211119074602.857595-1-lkml@jv-coder.de> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.102.4 at in-4.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH 08/12] posix/asctime: Fix potentioal buffer overflow X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Joerg Vehlow Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-bounces+ltp=archiver.kernel.org@lists.linux.it Sender: "ltp" From: Joerg Vehlow The buffer used in the sprintf was too small and could overflow. Signed-off-by: Joerg Vehlow --- .../open_posix_testsuite/conformance/interfaces/asctime/1-1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testcases/open_posix_testsuite/conformance/interfaces/asctime/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/asctime/1-1.c index bc3095081..8463d953d 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/asctime/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/asctime/1-1.c @@ -28,7 +28,7 @@ int main(void) { struct tm time_ptr; - char expected[26]; + char expected[128]; char *real; char wday_name[7][3] = -- 2.25.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp