You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems like the problem has nothing to do with division and instead is about the regex match operator (:).
According to POSIX and the GNU manual, the regex on the right side of the operator needs to be read with an implicit ^ at the start, i.e., it should only match at the beginning of the string.
Indeed, running /usr/bin/expr abc : bc gives 0, but ./target/debug/coreutils expr abc : bc gives 2. The code does indeed seem to not prepend the ^. I'm working on a fix now.
with GNU:
With our implementation:
Found by the fuzzer
The text was updated successfully, but these errors were encountered: