[Toybox] [PATCH] bc.c: deobfuscation of bc_lib

Oliver Webb aquahobbyist at proton.me
Tue Feb 27 11:14:53 PST 2024


The -l library in bc.c is stored in a obfuscated block of numbers, even though it's a ASCII string.
Why? I don't know, but I took the string bc_lib and turned it from a block of numbers into something
someone could look at and at least have a vague idea of what's happening in it.

This patch adds ~100 lines of code to bc.c, But none of it is logic, it's just de-obfuscation of the
math library

And also, bc_program_stdin_name never changes from "<stdin>" so there's no reason to make it a variable

-   Oliver Webb <aquahobbyist at proton.me>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-bc.c-Large-block-of-numbers-String-for-l-lib.patch
Type: text/x-patch
Size: 10405 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20240227/cda5cfbb/attachment.bin>


More information about the Toybox mailing list