Commit Graph

2163 Commits

Author SHA1 Message Date
Thomas Bernard 861298fa24
avoid realloc(p, 0) whose behavior is implementation-defined
fixes #652

see https://github.com/miniupnp/miniupnp/issues/652#issuecomment-1518922139
2023-04-23 11:51:11 +02:00
Thomas Bernard 5ca1a82f7f
zero the permission structure before parsing
should fix #652
2023-04-05 16:03:13 +02:00
Thomas Bernard e439318cf7
miniupnpd 2.3.3 2023-02-17 04:09:33 +01:00
Thomas Bernard 6e8d0fa161
upnppermissions.h: fix build, because #define ENABLE_REGEX is in config.h 2023-02-11 23:53:38 +01:00
Thomas Bernard ec48e04cd5
PinholeVerification(): use memcpy() to compare structures
fix 99fc9941aa
2023-02-11 23:36:56 +01:00
Thomas Bernard 99fc9941aa
Fix PinholeVerification()
see https://miniupnp.tuxfamily.org/forum/viewtopic.php?p=5847
2023-02-04 11:32:29 +01:00
Thomas Bernard f818ff39fe Merge remote-tracking branch 'fanquake/podspec_point_own_repo' 2023-01-31 09:18:24 +01:00
fanquake 9bf639fc91
podspec: point to miniupnp/miniupnp repo
It's not clear to me why this is pointing to a fork of this repository
(which has been marked as archived for nearly 3 years).

I guess this can be updated to point to this repo, or the podspec
removed entirely if there is no interest in maintaining it?
2023-01-30 14:09:13 +00:00
fanquake 197f3d5a1f
ci: remove .travis.yml 2023-01-30 14:06:00 +00:00
Thomas Bernard 72b33d7145
update Changelog.txt ;)
see 7bd0877b8f
2023-01-28 16:43:25 +01:00
Thomas Bernard 8d3986f82c upnppinhole.c: (c)2023 and https 2023-01-28 16:00:47 +01:00
Thomas Bernard 7bd0877b8f
upnp_add_inboundpinhole(): fix updating of leasetime for existing pinholes
upnp_update_inboundpinhole() takes the leasetime as an argument,
not the timestamp (= current_time + leasetime).

That was resulting in havin a timestamp very far in the future

see https://miniupnp.tuxfamily.org/forum/viewtopic.php?p=5840#
2023-01-28 15:58:57 +01:00
Thomas Bernard 57ae40fe10
miniupnpd: reject AddPinhole when InternalPort or RemortePort is empty
https://miniupnp.tuxfamily.org/forum/viewtopic.php?p=5839
2023-01-28 15:49:53 +01:00
Thomas Bernard 5a003a4f56 actions/upload-artifact v2 => v3
https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/
2023-01-28 15:12:58 +01:00
Thomas Bernard 9f244fc777 actions/checkout@v2 => actions/checkout@v3 2023-01-28 12:09:35 +01:00
Thomas Bernard d15c15bbcd codeql-action/init / analyze @v1 => @v2
https://github.blog/changelog/2023-01-18-code-scanning-codeql-action-v1-is-now-deprecated/
2023-01-28 12:04:26 +01:00
Thomas Bernard 8ced59d384
2022 => 2023 2023-01-26 23:53:58 +01:00
Thomas Bernard ec57d80849
2022 => 2023 2023-01-26 23:49:41 +01:00
Thomas Bernard b10c247fb1
upnpc.c: prevent warning with gcc 10 and 11
src/upnpc.c:153:37: warning: ‘%d’ directive output may be truncated writing between 1 and 10 bytes into a region of size 6 [-Wformat-truncation=]
  153 |                 snprintf(index, 6, "%d", i);
      |                                     ^~
src/upnpc.c:153:36: note: directive argument in the range [0, 2147483647]
  153 |                 snprintf(index, 6, "%d", i);
      |                                    ^~~~

Somehow the static analyser fails to recognize that 0 <= i < 65536

see #643
2023-01-26 23:44:26 +01:00
Thomas Bernard 98cc9f1b43
miniupnpd.init.d.script: also run ip6tables_init/ip6tables_removeall scripts
for support of IPv6
see https://miniupnp.tuxfamily.org/forum/viewtopic.php?t=2338
2023-01-21 13:00:03 +01:00
Thomas Bernard f4a739d730
miniupnpd version 2.3.2 2023-01-20 00:25:03 +01:00
Thomas Bernard 62e2ea175f miniupnpd/Changelog.txt: Fix NFTables again (RULE_HANDLE using more than 32 bits)
see #582
2023-01-15 18:43:09 +01:00
Thomas Bernard 904dda47ed
nftnlrdr_misc.c: replace nftnl_rule_get_data() usage with specific nftnl_rule_get_*() functions
nftnl_rule_get_u32()
nftnl_rule_get_u64()
nftnl_rule_get_str()

closes #641
should fix #582
2023-01-14 19:18:37 +01:00
Thomas Bernard 67ea8c8bc3 nftnlrdr_misc.c: debug message about proto_min_reg/proto_min_val 2023-01-14 19:16:40 +01:00
Thomas Bernard 014c9df8ee cmake use CMAKE_INSTALL_INCLUDEDIR 2023-01-04 22:49:35 +01:00
Thomas Bernard deea33c2b9 cmake: install of external-ip.sh
see #637
2023-01-04 22:48:57 +01:00
Thomas Bernard 12f7201abe cmake: install man page
fixes #637
2023-01-04 22:42:10 +01:00
Thomas Bernard b9bbab490a cmake: install listdevices / upnpc-static / upnpc-shared
see #637
2023-01-04 22:33:19 +01:00
Thomas Bernard 207cf440a2 minissdpd version 1.6.0 2022-10-22 20:44:00 +02:00
Thomas Bernard d62a36c054
minissdpd/getifaddr.c: symbolic link from ../miniupnpd/getifaddr.c 2022-10-22 20:29:30 +02:00
Thomas Bernard e5c9f72195 minissdpd: fix error message 2022-10-22 20:15:26 +02:00
scribam ea67c29b64 miniupnpc: update cmake project version 2022-10-21 23:45:35 +02:00
Thomas Bernard 7d1d8bc386
miniupnpc version 2.2.4 2022-10-21 23:05:29 +02:00
Thomas Bernard aa7e399604
miniupnpc: make test with CMake
fixes #531
2022-10-21 22:49:49 +02:00
Thomas Bernard fef6d4d17c
miniupnpc/testminiwget.sh / testupnpreplyparse.sh: allow to define executables 2022-10-21 22:45:46 +02:00
Thomas Bernard 2eecb06eb0 fix workflows triggers 2022-10-21 21:41:05 +02:00
Thomas Bernard a1535b0488 2022 2022-10-21 21:36:05 +02:00
Thomas Bernard fd62384959 miniupnpd: add option to match rules description with regex 2022-10-21 21:35:50 +02:00
yangfl 2ff8cb17da miniupnpd: Add option to match rules with regex
Some reports that a certain app is abusing UPnP for exploiting upload
bandwidth. This commit adds support to restrict UPnP rules to a regex.
By matching requester's description string against rule's regex, this
will make some obstacles for that app.
2022-10-21 21:26:39 +02:00
Thomas BERNARD 59335e4637
Merge pull request #591 from miniupnp/cmake-pkg-config
miniupnpc/CMakeLists.txt: generate and install miniupnpc.pc
2022-10-20 00:30:38 +02:00
Thomas Bernard 012c9aba47 appveyor.yml: compile for python 3.10 2022-10-17 00:48:20 +02:00
Thomas Bernard 3144201548 appveyor.yml: compile for python 3.8 2022-10-17 00:44:15 +02:00
Thomas Bernard 4d4c09f594
appveyor.yml: deploy to PyPI with twine
closes #573
2022-10-17 00:31:16 +02:00
Thomas Bernard 85a833adb8
appveyor.yml: add Python 3.6 2022-10-17 00:18:48 +02:00
Thomas Bernard 1c853a3276 SECURITY.md: miniupnpd 2.3.x 2022-10-16 08:14:06 +02:00
Thomas Bernard eb07f0c466 miniupnpd 2.3.1 2022-10-16 08:03:35 +02:00
Thomas Bernard a4e12c01c4
miniupnpd: move READNU32/WRITENU32/etc. to rw_unaligned.h 2022-10-16 07:54:38 +02:00
Thomas Bernard c13a4b15f1
upnpdescgen.c: include macros.h for UNUSED
fixes 3a2b15af4c
2022-10-16 07:43:42 +02:00
Thomas BERNARD 3f6350da6a
Merge pull request #630 from miniupnp/issue-628
fixes Issue 628 - bug on big endian
2022-10-16 07:33:19 +02:00
Thomas Bernard ac5e908881
miniupnpc/CMakeLists.txt: use project VERSION/DESCRIPTION/HOMEPAGE_URL 2022-10-15 17:36:28 +02:00