Skip to content

Commit 6a06bc4

Browse files
author
triaxx
committed
Fix abort with ctype(3) for NetBSD 11
TechSmith/mp4v2#85
1 parent 7f9e95b commit 6a06bc4

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

multimedia/mp4v2/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# $NetBSD: Makefile,v 1.10 2022/08/26 06:40:25 adam Exp $
1+
# $NetBSD: Makefile,v 1.11 2026/01/02 12:17:14 triaxx Exp $
22

33
DISTNAME= mp4v2-5.0.1
4+
PKGREVISION= 1
45
CATEGORIES= multimedia
56
MASTER_SITES= ${MASTER_SITE_GITHUB:=TechSmith/}
67
GITHUB_TAG= Release-ThirdParty-MP4v2-${PKGVERSION_NOREV}
@@ -12,7 +13,8 @@ LICENSE= mpl-1.1
1213

1314
WRKSRC= ${WRKDIR}/mp4v2-${GITHUB_TAG}
1415

15-
USE_LANGUAGES= c c++11
16+
USE_LANGUAGES= c c++
17+
USE_CXX_FEATURES= c++11
1618
USE_LIBTOOL= yes
1719
USE_PKGLOCALEDIR= yes
1820
USE_TOOLS+= gmake

multimedia/mp4v2/distinfo

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$NetBSD: distinfo,v 1.10 2022/08/26 06:40:25 adam Exp $
1+
$NetBSD: distinfo,v 1.11 2026/01/02 12:17:14 triaxx Exp $
22

33
BLAKE2s (mp4v2-5.0.1.tar.gz) = e43bc4237475b3e573347e71b441900207b0dd04c81498d5cd9985366f9af6d7
44
SHA512 (mp4v2-5.0.1.tar.gz) = 662b85e2d5cd1c190e7cbc7074914f750939694f8391ebf1402ecb90c533a35acc5bb5a1cfa852fc06e39c0b7e92142d26f8ee94fa2e6df2c0b1ed94fc2c63d7
@@ -7,6 +7,7 @@ SHA1 (patch-include_mp4v2_file.h) = bfb8ed37208a1e04c2cb2ca4a8409e4b2b274065
77
SHA1 (patch-libutil_Utility.h) = 982a92307e50061cefb8b979382c227cae144358
88
SHA1 (patch-src_mp4.cpp) = 53435290d3f3fd9ecc552357f674c54f5c6ec98d
99
SHA1 (patch-src_mp4atom.cpp) = 78a6dce747a8c5cc73f231fa9b81d116b51cf4bb
10+
SHA1 (patch-src_mp4util.cpp) = 557fc51233462dd4b63f2f3178963c73e62f43e7
1011
SHA1 (patch-util_mp4art.cpp) = e14257a57bb297f158c1d2a9e39023535e558895
1112
SHA1 (patch-util_mp4chaps.cpp) = c22a9b8b086165d8e65aeb9f470d7c3eabb9adb6
1213
SHA1 (patch-util_mp4file.cpp) = 7e8ca0b042e96df1bc096f3efb351600432cdfd0
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
$NetBSD: patch-src_mp4util.cpp,v 1.1 2026/01/02 12:17:14 triaxx Exp $
2+
3+
Fix abort with ctype(3) for NetBSD 11 (e.g. when s1 is "\251nam").
4+
5+
https://github.com/TechSmith/mp4v2/pull/85
6+
7+
--- src/mp4util.cpp.orig 2026-01-02 11:56:31.508036629 +0000
8+
+++ src/mp4util.cpp
9+
@@ -40,7 +40,7 @@ bool MP4NameFirstMatches(const char* s1,
10+
if (*s2 == '\0' || strchr("[.", *s2)) {
11+
break;
12+
}
13+
- if (tolower(*s1) != tolower(*s2)) {
14+
+ if (tolower((unsigned char)*s1) != tolower((unsigned char)*s2)) {
15+
return false;
16+
}
17+
s1++;

0 commit comments

Comments
 (0)