mino bundles source from the following third-party projects. Each project's
license is preserved in the source files under src/vendor/ and is reproduced
below.
Vendored arbitrary-precision integer arithmetic library. Source at
src/vendor/imath/imath.h and src/vendor/imath/imath.c, fetched from
https://github.com/creachadair/imath.
Copyright (C) 2002-2007 Michael J. Fromberger, All Rights Reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
The vendored src/vendor/imath/imath.c contains two narrow changes, each
marked with a mino: comment for audit on upstream sync:
s_realloccasts the unusedosizeparameter to void to silence-Wunused-parameterwarnings whenDEBUGis not defined.s_faketakes the absolute value through unsigned arithmetic so negation atMP_SMALL_MINwraps cleanly in two's complement instead of tripping signed-overflow UB (caught by UBSAN). The fix produces the same result as upstream for all non-MIN inputs, and the documented MIN case now produces the correct unsigned magnitude.
No other changes were made to the upstream source.