From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg0-f65.google.com ([74.125.83.65]) by ur; Wed Mar 22 18:33:56 EDT 2017 Received: by mail-pg0-f65.google.com with SMTP id g2so32756050pge.2 for <9front@9front.org>; Wed, 22 Mar 2017 15:33:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:date:to:subject:in-reply-to:mime-version :content-transfer-encoding; bh=r4i+WaK63KMFR/mX65GKXl2YaViPcEossKY1So8+9w4=; b=hefJL56yz569AT5d5ud3f4D52dRm2m1rv47btjSAnewN74zvbUQsfPqrGL+fwUcpW5 psBcyKiYAUbPcrDzeZ6bXd2ECxtrwr0Z0pUCvEGajegnbkVdBvVhrvdKXCwQy+/MgfT5 0xomEvB4xNmWYJFZtGpX7p/FJ7EGkvxsQ4PQePXGP5Lc+++pklyehMrjwDpFDwpwbwN2 HCfcbwURkdy7MBTehtLBD0mHrdMDZSS8P04NGM4b69n2cdOFlXtQD6FX/zaUQZL1PqZH R7P+GjwWtijpehpmqbVSYKoqaXmfq3xnAq3J/URVNW3sEexfE/Px4JzDvXDxQDvIvQ96 gZ8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:date:to:subject:in-reply-to :mime-version:content-transfer-encoding; bh=r4i+WaK63KMFR/mX65GKXl2YaViPcEossKY1So8+9w4=; b=KoDeAN+FcCeLUD68IHb4qmgj22d8LPlJxTvHBicRrlXiuTVhqnEQurdQNXCE3xz3K+ XNmZisjwF92nMsY2l6ttOXZ66f+wAAibFnUDXpt0mluBZ3TpE+oYSE7/LKgK7cAC7PgF sStk4BhowwbhV1PURMp2MWkCXipTIh846XOVhBsSbQnR4vacaU4LWw+9ZmPR4uUv45Ws L6kqeemusfyfk6rxjpGGiCKKNTA2puU94J681vhKtrbeqAwUDuAXwV23C8FMoFj+wLFO wJjG78l4IvEzejLAP04LEoSF4zbDqKEJnxTLIJxNCbX9XqVgcJP8ofRXt9zI1yP8jaW4 TaIQ== X-Gm-Message-State: AFeK/H1FLbI+A2PiEb7u97n3G/51DrOFxY0A/fM+Moad+H91D2XWpR1xOUM2GtOvpB0bTg== X-Received: by 10.84.216.17 with SMTP id m17mr59502230pli.158.1490222032834; Wed, 22 Mar 2017 15:33:52 -0700 (PDT) Return-Path: Received: from cirno.sam-d.org ([216.129.126.126]) by smtp.gmail.com with ESMTPSA id h71sm5844268pfj.65.2017.03.22.15.33.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 22 Mar 2017 15:33:52 -0700 (PDT) From: inkswinc@gmail.com X-Google-Original-From: glenda@cirno.sam-d.org Message-ID: <745cf9d69a41e9f2e8c0109a8f5419a8@cirno.sam-d.org> Date: Wed, 22 Mar 2017 17:09:51 +0000 To: cinap_lenrek@felloff.net, 9front@9front.org Subject: Re: [9front] nupas auth: incompatibility and error messaging In-Reply-To: 744dfa9c54bf8193702470c2385fe6d9@felloff.net 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: self-healing SVG singleton replication On Wed, 22 Mar 2017 10:17:14 +0100, cinap_lenrek@felloff.net wrote: > to be clear, this is like: > > buf = ... usercontrolled string ... > > print(buf); vs print("%s", buf); > > the former allows you to crash the program. > > -- > cinap Ah, thanks. I'd always seen the latter style, but it never clicked for me why it was done that way. Makes a lot of sense now... time to grep through my programs and see all the other places I've made this mistake. - sam-d