summaryrefslogtreecommitdiff
path: root/missing/dtoa.c
AgeCommit message (Collapse)Author
2025-12-24Fix a possible memory leak in dtoaNobuyoshi Nakada
Fix GH-15061
2025-09-10dtoa.c: Check integer underflowNobuyoshi Nakada
Reported at https://hackerone.com/reports/3288162 This underflow does not occur in Ruby because: * This function is `static` and not accessible other than from ruby internal. * Ruby uses mode 0 when calling this function directly. * For `%f` in vsnprintf.c using mode 3, this parameter comes from the precision, but negative precision is meaningless and ignored.
2025-09-10dtoa.c: Check memory allocation failuresNobuyoshi Nakada
2025-09-10dtoa.c: Extract macro to update 5powers Bigint cache atomicallyNobuyoshi Nakada
2025-09-10dtoa.c: Add shortcut if arguments are zeroNobuyoshi Nakada
2025-04-07Remove spinlock in dtoa's Balloc, use xmallocJohn Hawthorn
The spinlock here performs poorly when there are multiple Ractors. The improvement on single threaded performance doesn't seem that significant, so I think we should just use malloc. Notes: Merged: https://github.com/ruby/ruby/pull/12991
2024-10-05[Bug #20705] Update `strtod` implementationNobuyoshi Nakada
The absence of either the integer or fractional part should be allowed. Notes: Merged: https://github.com/ruby/ruby/pull/11807
2023-07-14Make dtoa.c buildable aloneNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/8074
2022-04-12Fix dtoa buffer overrunNobuyoshi Nakada
https://hackerone.com/reports/1248108 Notes: Merged: https://github.com/ruby/ruby/pull/5794
2021-02-10Fixed race in dtoa [Bug #17612]Nobuyoshi Nakada
Fixed the race condition when replacing `freelist` entry with its chained next element. At acquiring an entry, hold the entry once with the special value, then release by replacing it with the next element again after acquired. If another thread is holding the same entry at that time, spinning until the entry gets released. Co-Authored-By: Koichi Sasada <ko1@atdot.net> Notes: Merged: https://github.com/ruby/ruby/pull/4167
2021-01-10dtoa.c: make thread-safe by using atomic CASNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/4046
2021-01-10dtoa.c: constifiedNobuyoshi Nakada
clang seems to locate never modified local data in the const segment implicitly.
2021-01-10dtoa.c: make compilable independentlyNobuyoshi Nakada
Except for `-Dxmalloc=malloc -Dxfree=free`.
2019-02-07Split dtoa.cnobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e