Skip to content

Commit

Permalink
package/libmodplug: add a patch fixing cctype UB
Browse files Browse the repository at this point in the history
libmodplug calls `cctype` functions, such as `isspace`,
with negative values. This is undefined behaviour.

While glibc allows it, it crashes on uClibc compiled
without `UCLIBC_HAS_CTYPE_SIGNED`.

Adds a patch that resolves the issue.

Also sent upstream. However, the library author has not merged
any pull request for about a year.

Signed-off-by: Gleb Mazovetskiy <glex.spb@gmail.com>
[yann.morin.1998@free.fr:
  - add Gleb's SoB to the patch
  - add upstream URL to the patch
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
  • Loading branch information
glebm authored and yann-morin-1998 committed Oct 1, 2023
1 parent f10f47f commit 33d0a13
Showing 1 changed file with 957 additions and 0 deletions.
Loading

0 comments on commit 33d0a13

Please sign in to comment.