From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 9057 invoked from network); 23 Jan 2022 01:23:09 -0000 Received: from 4ess.inri.net (216.126.196.42) by inbox.vuxu.org with ESMTPUTF8; 23 Jan 2022 01:23:09 -0000 Received: from mail-qv1-f51.google.com ([209.85.219.51]) by 4ess; Sat Jan 22 20:16:00 -0500 2022 Received: by mail-qv1-f51.google.com with SMTP id g13so13008074qvw.4 for <9front@9front.org>; Sat, 22 Jan 2022 17:15:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mforney.org; s=google; h=from:message-id:date:subject:to:mime-version :content-transfer-encoding; bh=4STfJOuATfMD8GQb/s2d7k4cs0eMfcV0myuhWxHeVEs=; b=l4m/lwZy8ETRp3i1jTszAs4UkV1NO49s7rMURsbwa+HnkAllsFDNDKjOB4xTtqvVMq UZqgLB7JF3YF/2p4t2Wabazn6/xCh1VvM6GMpwveyKTxhdAumcz0l+4Z6JZfQUGeHDCq 7oRx3DQza7x+j3dqhnG7zLOMkF7GQAFQGFtWfIYHbccufPWfg9kjoXUrfzCX9dRI08/R 7lBVmRw/yaxHRw7r8if9FAJ8brP2mTWqtt6DxGnj8Z+f10mvWOK2a3OSLdJa5VLbKBsJ AtVRP2/dJkWPGdFvzL/doVr1SiU7RDq6GEraiqlV2Dx5k6yPY56xKe4eg+OEl22+C2sN 3npw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:message-id:date:subject:to:mime-version :content-transfer-encoding; bh=4STfJOuATfMD8GQb/s2d7k4cs0eMfcV0myuhWxHeVEs=; b=Vk61lBsDqGalplpxOQYCB30Jy5RwJ4kTVvjxf0he93cdFY9Q8RtJv7dtdT+6HS1zNo sR4/830BlwL5h8b1nm/jc0ZN7ii7i/hZY07C/t2tXfs5wCTcE6khOqCtsCu9g9dd7Icn SSjU08tWtXiC8uBqDDKfLtPwO7N+TB9kJR4dU0JV1e8DErXkAF1CnbezYpU5wKLwyZ2c 3k3ZtFLfgcXwJSkiIFiXQuXYUzpLUdrdWgdBLV7+QkgJeg40+AR4NEQKuUT30an8W7Z7 YcIACQDuwSkvvM6nukarfAn0LUd3x2gcd+rN1tJq19uC5O4DqabXY09ddRBbGMxA2qTq Q02A== X-Gm-Message-State: AOAM531YaUCtZwUlvHkaJ/3C7rn0QVyynYtAGluxr/pAO8HTB9kZDejL Apr03WZqanGBcgpIq4PuuGTk6lYz6bKf8VkF9Vg= X-Google-Smtp-Source: ABdhPJzXEwr/7kwyINQ6sFwQac+1kzfrotbyEjm6wdVGtNDcxYzUh4Oq/wZ0qr3gvU0kxq6JtRzOLw== X-Received: by 2002:a17:903:1d0:b0:14b:416a:a2c0 with SMTP id e16-20020a17090301d000b0014b416aa2c0mr2249825plh.14.1642900125625; Sat, 22 Jan 2022 17:08:45 -0800 (PST) Return-Path: Received: from arrow ([98.45.152.168]) by smtp.gmail.com with ESMTPSA id g1sm11366290pfj.84.2022.01.22.17.08.44 for <9front@9front.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 22 Jan 2022 17:08:45 -0800 (PST) From: Michael Forney Message-ID: <8EBA4C4DBE4E51D98D5F46A20255F163@arrow> Date: Sun, 23 Jan 2022 01:05:27 +0000 To: 9front@9front.org MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: package persistence realtime-oriented control Subject: [9front] [PATCH] cc: fix incorrect octal range condition in mpatov Reply-To: 9front@9front.org Precedence: bulk This does not have any adverse effect, since yylex never calls mpatov with a string with leading 0 (and not 0x) that contains non-octal digits, but the condition was wrong regardless. --- diff 108d74cb0a8d27e82550d2772ae64fd7748e151d f101ca1299eb8d3ccafc9190651e98486948ec0d --- a/sys/src/cmd/cc/lex.c Fri Jan 7 02:37:02 2022 +++ b/sys/src/cmd/cc/lex.c Sat Jan 22 17:05:27 2022 @@ -982,7 +982,7 @@ if(c == 'x' || c == 'X') goto hex; while(c = *s++) { - if(c >= '0' || c <= '7') + if(c >= '0' && c <= '7') nn = n*8 + c-'0'; else goto bad;