From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 394653858C52 for ; Mon, 13 Nov 2023 13:19:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 394653858C52 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 394653858C52 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699881555; cv=none; b=Lp0wgHOJHNZHZ5J0+/Ht5dSmpPBY9NUMm3xNXGkKbjP+N9jWWRbFxm8s3UeDDZ3jsty5yCKwrGhQOuMzns8uCoWA5EPVE/ymuGRTbUTSmsJClgJk1PPFj3rpLTD4DvrKdEjfAW/fIoXplw+P1AFSLbqkHvRnmccPflsbhaJ3nAA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699881555; c=relaxed/simple; bh=TkiLZAdAOCks/laqI97sAaWa3VNlQu4/HlPkQpW1E98=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=rT43Hrkku2pb9S8rio7JPq3JylGx77Yzl8+yCKdSqifpDogmnGErKc0fcfZKgVylVkS7cvSX+z4GUj77B8WeyT/kE3jh1BhRN3mqBB7vA+smqKGQ5qOjjqBXHCd08uy/cbj46Qp5FBPZG54sg0DhTaXzQl+lN/zQfKKfGGQa6IA= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1699881553; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0SDp0X6Bl75/YTiz7N5oLn5Vg8Q2GaoVzJuqyji1tc0=; b=gSUTeQAPOorPlvYiJh0iO5VxZqMw92xeUFBDmRI6H7pSNG47TaN//FGZTG5aYmmqw1P7mf prZTVMISwN0bYiD1FkVXeC08/mNQjChsaQA9twweiu9lTVPbLA7moqX0cHRn4MFqmqjNQb B7AbBMF/t5mN1/Si2wU2iol/DFGC0ro= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-582-iVyFqxk0O5-xuknCWnc8EA-1; Mon, 13 Nov 2023 08:19:12 -0500 X-MC-Unique: iVyFqxk0O5-xuknCWnc8EA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (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 mimecast-mx02.redhat.com (Postfix) with ESMTPS id 6F6D13C0FC9F for ; Mon, 13 Nov 2023 13:19:12 +0000 (UTC) Received: from calimero.vinschen.de (unknown [10.39.194.184]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4D5431121307 for ; Mon, 13 Nov 2023 13:19:12 +0000 (UTC) Received: by calimero.vinschen.de (Postfix, from userid 500) id 266AFA80A3D; Mon, 13 Nov 2023 14:19:11 +0100 (CET) Date: Mon, 13 Nov 2023 14:19:11 +0100 From: Corinna Vinschen To: newlib@sourceware.org Subject: Re: Coverity Scan: Analysis completed for RTEMS-Newlib Message-ID: Reply-To: newlib@sourceware.org Mail-Followup-To: newlib@sourceware.org References: <654dcb688da84_69bd52d4ed1e699a037313@prd-scan-dashboard-0.mail> MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Nov 10 11:44, Joel Sherrill wrote: > On Fri, Nov 10, 2023 at 9:32 AM Corinna Vinschen > wrote: > > > On Nov 10 08:50, Joel Sherrill wrote: > > > Hmmmm.. an email just before the one I forwarded shows 6 new defects were > > > added in the last commits. They appear to be the same issue I just > > > forwarded but in different scanf variants. > > > > > > CID 423229 (#1 of 1): Uninitialized scalar variable (UNINIT)2. > > > uninit_use_in_call: Using uninitialized value f._flags2 when calling > > > __ssvfiscanf_r. [show details > > > < > > https://scan3.scan.coverity.com/eventId=13202494-1&modelId=13202494-0&fileInstanceId=104130545&filePath=%2Fhome%2Fjoel%2Frtems-cron-coverity%2Fsourceware-mirror-newlib-cygwin%2Fnewlib%2Flibc%2Fstdio%2Fvfscanf.c&fileStart=400&fileEnd=1980 > > > > > > ] > > > > Looks like a false positive. > > > > The ORIENT macro will set or reset the value of the _flags2 __SWID bit > > if the _flags __SORD bit isn't set. It never is set at the start, so > > the _flags2 __SWID bit is always set. And only then, the ORIENT macro > > will check the value. > > > > Thanks. I will mark them as false positive. > > What about the issue in the printf variants? Looks like similar code. Are > they > also false positives? This is from asiprintf.c > > 37 f._flags = __SWR | __SSTR | __SMBF; > > 1. assign_zero: Assigning: f._p = NULL. > 38 f._bf._base = f._p = NULL; > 39 f._bf._size = f._w = 0; > 40 f._file = -1; /* No file. */ > 41 va_start (ap, fmt); > > CID 387497 (#2 of 2): Explicit null dereferenced (FORWARD_NULL)2. > var_deref_model: Passing &f to _svfiprintf_r, which dereferences null f._p. > [show details > > ] > 42 ret = _svfiprintf_r (ptr, &f, fmt, ap); Did you try to debug it? Corinna