Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5421612rwd; Mon, 12 Jun 2023 05:04:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5qoLStXamCXG52JG31CmvXSYN5yuPcYfQk7roMaFdK/besawJps8WRlTtMlKFKVoGRt9IT X-Received: by 2002:a17:907:9611:b0:971:2eaf:556 with SMTP id gb17-20020a170907961100b009712eaf0556mr9502005ejc.18.1686571487023; Mon, 12 Jun 2023 05:04:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686571487; cv=none; d=google.com; s=arc-20160816; b=zdQ24t9wmIpTczHwwc4U7xtGynoBGN1a0bh1U7v+/rJF82NElwZ7BXvBBq3DVdYWkZ MUoxHzHq5MyoLSo5jTmadgdHd23C6Jd1Oz4msCkPl+n6ilxeR3loF6fpVtPMrhepb5kg kCXgzWqigBHvutDP+vTlPRAKmOUsm8EBLw+ve9vOdiAQnPsGBHm+AtUIDDhG+z4M23WT RWFNIyWqbqrraILXfiNoICGsm0LqYwGYNzDgNlAYmeNHhmSHurGaEh5Mz0pT1t2lSwxQ 0jF0KtK1aNH+ymiBNdIZC6ZE2Ir9kWBqq4ZsircOQnbWD/EDDMzIQDQzOiwn7xCM3pcV vFog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=Jkz7sQ+AjflJ9fndE58gpR+mMJbc6S15wD8YPJ1livA=; b=xhr0iIg09qxQ0mJpfJAHMzSCd56VVjqYh3CVlOAHhIy/9ayel6zQqLJeL4Z2JS1t9M SGLjCw6/Oy70cy13Hius67DZe91RB2aLcTL62OiL5ecyDonkxKSmt85iZdo841uDWXnT 82QsYKkZUwj/kw3614rc5HJpDnQdL3bkjxCsqdnKxv73JxUyxfU0JCNLp4+a19BBZXnI notLcZ2IE1yKYpW/d1p8gBO/kvrZX161JTYMVvJ18kZRR3LmKQzuh353Sc5X6egIwMNn NJyxFEH0nniMoUc8vHy8xw+VkqQIxdo/CXHKhFHOPElhubIUoaJy0JjLFtH1+Zkh8MQ2 SK3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="lQmd3/+u"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k19-20020a170906129300b00977e918e260si3892646ejb.618.2023.06.12.05.04.13; Mon, 12 Jun 2023 05:04:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="lQmd3/+u"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230165AbjFLMAC (ORCPT + 99 others); Mon, 12 Jun 2023 08:00:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230449AbjFLL7o (ORCPT ); Mon, 12 Jun 2023 07:59:44 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6A2093 for ; Mon, 12 Jun 2023 04:59:43 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-4f60a27c4a2so4674866e87.2 for ; Mon, 12 Jun 2023 04:59:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686571182; x=1689163182; h=content-transfer-encoding:content-disposition:mime-version :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=Jkz7sQ+AjflJ9fndE58gpR+mMJbc6S15wD8YPJ1livA=; b=lQmd3/+uEpPiru4mq2gE7A/rufnFAW4ooqeuSotzHPn4OsujtbclnEWb1xgsY4uR/X TMJsFdgddX6AAh+4A3ic27LT1DSkO9UWGXX4agNuUgLv5kJzDpqEqKx5prcEHH54IR38 y8OAEt4ZKBiL6y9zYdFsgiRWBcIzj3CaKyABKKHuhObjxkKo9bi4u9HxH8QOdlLgMVTh N40UE3fPpKULjwXE+9tjmIL2V5S4CJDkh7LtsAywKpAOTAhL4HlsJPz3uRs2+Wu/Dsm8 DLkBae66jmQruaNXRNhUd6Qs2EimrGOdjroUutM7qtSkMa9A+ptk4JRjFzzyEiaD4KPB PGqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686571182; x=1689163182; h=content-transfer-encoding:content-disposition:mime-version :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Jkz7sQ+AjflJ9fndE58gpR+mMJbc6S15wD8YPJ1livA=; b=Wgq1U9JsHwxtTGiOzfvnMAXyoL9XJLgKAZX6914jckc6DsyBHDFJ9DEYdfeyE0Pcmf if1pTeDaU+YbfVOJsnyY2lWpQLV23W1H/koC06nRiycGOGzi/SpWtr4mvbcrseTKer8G S6A/KwRiXLtKFe7YTKyaRs74ZuEyuDlJi5XTKr0KzNBYzGb0HJxQD2tjyW+fgQ5PdgRn kBmAaYE9sjHfEzRnrvG/XGzc18Z69K3b+oUJqoATe32iclhwHPUWViiMKZvPrS/KJZp6 PdN6VnaKRdLFvZjEb3EGHZKC0QMp9UrGVB1MjzOdReOPgMxk0bUGvHdhERm+6DyuwvEF V4hw== X-Gm-Message-State: AC+VfDw/QZ4DZsbrF44fwE8HMTcEO2gIslISKH9Ynw5L52+jumPFhaTD Ehm97g+jUrCQfcE5oAfsQAruuYqLFPyc X-Received: by 2002:a05:6512:2f5:b0:4f3:8260:f18c with SMTP id m21-20020a05651202f500b004f38260f18cmr3897799lfq.57.1686571181643; Mon, 12 Jun 2023 04:59:41 -0700 (PDT) Received: from p183 ([46.53.253.153]) by smtp.gmail.com with ESMTPSA id 6-20020a05600c230600b003f41bb52834sm11286149wmo.38.2023.06.12.04.59.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jun 2023 04:59:40 -0700 (PDT) Date: Mon, 12 Jun 2023 14:59:38 +0300 From: Alexey Dobriyan To: Demi Marie Obenour Cc: linux-kernel@vger.kernel.org, Rasmus Villemoes , Hans de Goede , Mauro Carvalho Chehab , Sakari Ailus , Greg Kroah-Hartman , Juergen Gross , Stefano Stabellini , Oleksandr Tyshchenko , Lee Jones , Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino , Petr Mladek , Steven Rostedt , Sergey Senozhatsky , Andy Shevchenko Subject: Re: [PATCH v3 0/4] Make sscanf() stricter Message-ID: <6ab6adce-2318-4ae6-bde6-4317485639fd@p183> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > + bool _placeholder; > + return simple_strntoull(cp, INT_MAX, endp, base, &_placeholder); This can be done without introducing dummy variables: void f(bool *b) { } f((bool[1]){}); > > lib/vsprintf.c:3727:26: error: unknown conversion type character ‘!’ in format [-Werror=format=] > So NAK. Yeah, ! should go after format specifier like it does for %p.