Re: [PATCH] Add bounds-checks to substring

2024-03-12 Thread Mario Domenech Goulart
Hi, On Mon, 11 Mar 2024 12:17:51 +0100 felix.winkelm...@bevuta.com wrote: > Thanks! A signed off copy is attached (waiting for another chicken-hacker > to approve). Thanks siiki and Felix. The patch has been applied. All the best. Mario -- http://parenteses.org/mario

Re: [PATCH] Add bounds-checks to substring

2024-03-11 Thread felix . winkelmann
Thanks! A signed off copy is attached (waiting for another chicken-hacker to approve). cheers, felix From 7c4e7e84ddcc20e262b1aa15eef25c8133f63a7e Mon Sep 17 00:00:00 2001 From: felix Date: Mon, 11 Mar 2024 12:15:44 +0100 Subject: [PATCH] Because the `start1`/`start2`/`n` parameters were not

[PATCH] Add bounds-checks to substring=? and substring-ci=?

2024-03-10 Thread siiky via CHICKEN developers mailing list
Because the `start1`/`start2`/`n` parameters were not checked to be within bounds, it was possible to access arbitrary memory outside of the given strings. This could lead to wrong results (returning #t/#f when the opposite was true), or possibly crashing the program. --- data-structures.scm