Re: [hackers] [PATCH] [sbase] dc: prevent segfaults by cleaning up data
Hi,
On Sat, Jan 17, 2026 at 05:00:46PM +0100, Elie Le Vaillant wrote:
> Without these changes, dc can undergo segfaults in a variety of
> situations (list of cases that segfault, one for changed line):
> 1. echo 'e(5)' | bc -lc | dc
> 2. echo 'la sa sa sa' | dc
> 3. echo '5p' > a.dc; dc a.dc
> ---
Applied + a test file with these cases that you proposed in your
commit message. I suppose bc and dc still have some more bugs,
but I am optimistic that they are not going to have too many of them,
so let's see how fast we can stabilize them :)
I am working in some patches for bc to use the extended register
notacion of dc to support identifier longers than one letter,
and I hope I will have tha ready for the next week,
Thank you!
Received on Sat Jan 17 2026 - 21:21:38 CET
This archive was generated by hypermail 2.3.0
: Sat Jan 17 2026 - 21:24:31 CET