stringencoders icon indicating copy to clipboard operation
stringencoders copied to clipboard

Fast c-string transformations

Results 9 stringencoders issues
Sort by recently updated
recently updated
newest added

Fix https://github.com/client9/stringencoders/issues/55

The following error message is generated by AddressSanitizer: ================================================================= ==25695==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f0495576783 bp 0x7ffc5b00bb10 sp 0x7ffc5b00ba60 T0) ==25695==The signal is caused by a READ...

The following two lines generate two identical char arrays. https://github.com/client9/stringencoders/blob/e1448a9415f4ebf6f559c86718193ba067cbb99d/src/modp_b64_gen.c#L87 https://github.com/client9/stringencoders/blob/e1448a9415f4ebf6f559c86718193ba067cbb99d/src/modp_b64_gen.c#L92 One called `e1` and the other `e2`. I can't figure out what's the use two identical array literals. They...

This PR adds 3 fuzzers. Since stringencoders is a security-critical library for Chromium, it might be worth it to integrate it into oss-fuzz to setup continuous fuzzing. I can confirm...

We found that `modp_dtoa2` has odd cases where it does not properly round-to-even. For example `x.665` should be rounded down to `x.66` but sometimes it gets rounded to `x.67` ```sh...

Hi, thank you for your project. I want to make few improvements and merge them upstream. However some of them are subjective and might impose minor breaking changes. I'd like...

``` Nick, The code has the following branch: if (value > thres_max) { sprintf(str, "%e", neg ? -value : value); return; } This is wrong as it ignores requested precision...

Priority-Medium
Type-Defect
auto-migrated

``` A possible enhancement would be to check for a parameter of 0.0 for the value argument and then immediately set the str to "0" and return, similar to the...

Priority-Medium
Type-Defect
auto-migrated

Like this: https://github.com/bro/bro/blob/master/src/modp_numtoa.c#L290-L292