Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

A mathematician is a device for turning coffee into theorems. -- P. Erdos


devel / comp.lang.awk / Re: [solved] (Spoilers!) Re: Yet another obfuscated Awk code

SubjectAuthor
* [solved] (Spoilers!) Re: Yet another obfuscated Awk codeKpop 2GM
`- [solved] (Spoilers!) Re: Yet another obfuscated Awk codeJanis Papanagnou

1
Re: [solved] (Spoilers!) Re: Yet another obfuscated Awk code

<6136eea8-6938-4607-92b3-764dcce36260n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=2212&group=comp.lang.awk#2212

  copy link   Newsgroups: comp.lang.awk
X-Received: by 2002:a05:6214:186d:b0:435:b8a0:1fe9 with SMTP id eh13-20020a056214186d00b00435b8a01fe9mr5022395qvb.54.1653739660719;
Sat, 28 May 2022 05:07:40 -0700 (PDT)
X-Received: by 2002:a25:d186:0:b0:65c:29bf:19bd with SMTP id
i128-20020a25d186000000b0065c29bf19bdmr3694533ybg.97.1653739660512; Sat, 28
May 2022 05:07:40 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.awk
Date: Sat, 28 May 2022 05:07:40 -0700 (PDT)
In-Reply-To: <0d9f53b4-b6ff-4ca4-b16e-fa0b56bb2070n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2603:7000:3c3d:41c0:0:0:0:3c3;
posting-account=n74spgoAAAAZZyBGGjbj9G0N4Q659lEi
NNTP-Posting-Host: 2603:7000:3c3d:41c0:0:0:0:3c3
References: <ssgl1b$36s$1@dont-email.me> <ssibc2$9pe$1@dont-email.me>
<f05a8894-1fff-43b7-a90e-d1ba7a111731n@googlegroups.com> <ff32981e-fe0b-4e8a-89b2-049e29320befn@googlegroups.com>
<0d9f53b4-b6ff-4ca4-b16e-fa0b56bb2070n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6136eea8-6938-4607-92b3-764dcce36260n@googlegroups.com>
Subject: Re: [solved] (Spoilers!) Re: Yet another obfuscated Awk code
From: jason.cy.kwan@gmail.com (Kpop 2GM)
Injection-Date: Sat, 28 May 2022 12:07:40 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1770
 by: Kpop 2GM - Sat, 28 May 2022 12:07 UTC

@Janus : i just realized because your code doesn't perform any data scrubbing, anything that's not a positive integer immediately stack overflow due to infinite loop

here's the version that fixes both of those :

function ___(_) { return (_ = int(_)) <= _^(_<_) ? -_<+_ : __(_,_~_,_<_) }
function __(_,____,_____) { return (_ -= (____ += +_____)^(_<_)) ? __(_,_____,____) : +____ }{ print ___($-_) }

Re: [solved] (Spoilers!) Re: Yet another obfuscated Awk code

<t6t5d0$fb5$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=2213&group=comp.lang.awk#2213

  copy link   Newsgroups: comp.lang.awk
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou@hotmail.com (Janis Papanagnou)
Newsgroups: comp.lang.awk
Subject: Re: [solved] (Spoilers!) Re: Yet another obfuscated Awk code
Date: Sat, 28 May 2022 14:43:11 +0200
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <t6t5d0$fb5$1@dont-email.me>
References: <ssgl1b$36s$1@dont-email.me> <ssibc2$9pe$1@dont-email.me>
<f05a8894-1fff-43b7-a90e-d1ba7a111731n@googlegroups.com>
<ff32981e-fe0b-4e8a-89b2-049e29320befn@googlegroups.com>
<0d9f53b4-b6ff-4ca4-b16e-fa0b56bb2070n@googlegroups.com>
<6136eea8-6938-4607-92b3-764dcce36260n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 28 May 2022 12:43:12 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="dc2958b99611d3da5962b21a3af109de";
logging-data="15717"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+VhWTKvO2oknCSlGj1TJ7f"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:efbYIdT0gjl3aUmP3pKcTL10Ofk=
In-Reply-To: <6136eea8-6938-4607-92b3-764dcce36260n@googlegroups.com>
X-Enigmail-Draft-Status: N1110
 by: Janis Papanagnou - Sat, 28 May 2022 12:43 UTC

On 28.05.2022 14:07, Kpop 2GM wrote:
> @Janus : i just realized because your code doesn't perform any data
> scrubbing, anything that's not a positive integer immediately stack
> overflow due to infinite loop

This is a correct observation, and I think I've addressed that in my
last post of this sub-thread where I suggested adding a condition to
keep the numbers in the domain of valid numbers.

(BTW, I suggest, in Usenet posts, to quote context to make it easier
to see what you are referring to. Thanks.)

Janis

> [...]

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor