1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

79 Commits

Author SHA1 Message Date
Marian Buschsieweke
d605b58a91
pkg/ccn-lite: Fix use after free bug
This fixes compilation with GCC >= 12.x, which is unhappy about the use
after free:

    /home/maribu/Repos/software/RIOT/build/pkg/ccn-lite/src/ccnl-core/src/ccnl-relay.c: In function 'ccnl_fib_rem_entry':
    /home/maribu/Repos/software/RIOT/build/pkg/ccn-lite/src/ccnl-core/src/ccnl-relay.c:916:16: error: pointer 'fwd' used after 'free' [-Werror=use-after-free]
      916 |         if (fwd->face) {
          |             ~~~^~~~~~
    In file included from /home/maribu/Repos/software/RIOT/build/pkg/ccn-lite/src/ccnl-core/src/ccnl-relay.c:33:
    /home/maribu/Repos/software/RIOT/build/pkg/ccn-lite/src/ccnl-core/../ccnl-riot/include/ccn-lite-riot.h:52:41: note: call to 'free' here
       52 | #define ccnl_free(p)                    free(p)
          |                                         ^~~~~~~
    /home/maribu/Repos/software/RIOT/build/pkg/ccn-lite/src/ccnl-core/src/ccnl-relay.c:910:13: note: in expansion of macro 'ccnl_free'
      910 |             ccnl_free(fwd);
          |             ^~~~~~~~~
    /home/maribu/Repos/software/RIOT/build/pkg/ccn-lite/src/ccnl-core/src/ccnl-relay.c: In function 'ccnl_fib_rem_entry':
    /home/maribu/Repos/software/RIOT/build/pkg/ccn-lite/src/ccnl-core/src/ccnl-relay.c:916:16: error: pointer 'fwd' used after 'free' [-Werror=use-after-free]
      916 |         if (fwd->face) {
          |             ~~~^~~~~~
    In file included from /home/maribu/Repos/software/RIOT/build/pkg/ccn-lite/src/ccnl-core/src/ccnl-relay.c:33:
    /home/maribu/Repos/software/RIOT/build/pkg/ccn-lite/src/ccnl-riot/include/ccn-lite-riot.h:52:41: note: call to free' here
       52 | #define ccnl_free(p)                    free(p)
          |                                         ^~~~~~~
    /home/maribu/Repos/software/RIOT/build/pkg/ccn-lite/src/ccnl-core/src/ccnl-relay.c:910:13: note: in expansion of macro 'ccnl_free'
      910 |             ccnl_free(fwd);
          |             ^~~~~~~~~
2022-11-11 22:16:47 +01:00
Gunar Schorcht
4bcaab1eb7 pkg/ccn-lite: declare gettimeofday function as weak symbol
The definition of gettimeofday in pkg/ccn-lite leads to multiple definitions on platforms where gettimeofday is compiled in in newlib. Therefore, the gettimeofday function in pkg/ccn-lite is declared as weak symbol.
2022-08-24 09:05:25 +02:00
chrysn
ee3b56fa08 pkg/ccn-lite: patch to fix use-after-free
Workaround-For: https://github.com/cn-uofbasel/ccn-lite/pull/388
2022-08-20 17:47:50 +02:00
Francisco Molina
b77b21ba13 pkg/ccn-lite: migrate to ztimer64 2021-12-10 17:04:57 +01:00
Marian Buschsieweke
be09ba67a6
pkg/ccn-lite: suppress -Wcast-align 2021-12-03 10:12:32 +01:00
Marian Buschsieweke
de2bd172f8
pkg/ccn-lite: use -std=c11 instead of -std=c99
RIOT switched to C11, so packages need to follow suit to use RIOT's
headers.
2021-11-11 09:55:24 +01:00
Benjamin Valentin
7cc19d19a0 pkg/ccn-lite: bump version 2021-08-25 18:42:40 +02:00
Marian Buschsieweke
0d2c73d82c
pkg/ccn-lite: bump version 2021-02-25 16:49:34 +01:00
46737bcdf3 pkg/ccn-lite: add patch for changed kernel_pid_t location 2020-11-25 17:52:34 +01:00
Cenk Gündoğan
0d0bc91553
Merge pull request #14754 from leandrolanzieri/pr/no_archives
build system: link object files
2020-09-10 09:36:29 +02:00
Leandro Lanzieri
81cb769cad
makefiles: avoid building archives when compiling 2020-09-04 15:01:10 +02:00
Marian Buschsieweke
ed0c8d7b84
pkg/ccn-lite: bump version 2020-09-03 06:40:53 +02:00
a8c04f5bea
pkg/ccn-lite: add patch to fix the build on stm32 cpus 2020-07-16 17:35:50 +02:00
a8eb1f5d53
pkg: adapt cmake based packages to the new organization 2020-06-26 09:25:44 +02:00
b67578899f
pkg/ccn-lite: improve out-of-source build 2020-06-19 14:23:49 +02:00
Martine S. Lenders
1c251beb03
gnrc_nettype: indirect NETTYPE definition via pseudo-modules
Instead of making a NETTYPE definition dependent on an implementation
module, this change makes it dependent on a pseudo-module for each
specific NETTYPE and makes the respective implementation modules
dependent on it.

This has two advantages:

- one does not need include the whole implementation module to
  subscribe to a NETTYPE for testing or to provide an alternative
  implementation
- A lot of circular dependencies related to GNRC could be untangled.
  E.g. the only reason `gnrc_icmpv6` needs the `gnrc_ipv6` is because it
  uses `GNRC_NETTYPE_IPV6` to search for the IPv6 header in an ICMPv6
  when demultiplexing an ICMPv6 header.

This change does not resolve these dependencies or include usages where
needed. The only dependency change is the addition of the
pseudo-modules to the implementation modules.
2020-05-05 19:16:06 +02:00
Jose Alamos
9cf2da0287 pkg/ccn-lite: add patch for replacing GNRC_NETIF_NUMOF 2020-03-26 14:19:03 +01:00
Francisco
c8461a4bef
Merge pull request #13036 from basilfx/feature/save_state_and_dependencies
pkg/pkg.mk: use intermediate state files
2020-01-08 22:57:12 +01:00
PeterKietzmann
ee53dd958c pkg/ccn-lite: bump version 2020-01-08 22:26:56 +01:00
Gaëtan Harter
ca5d13cc2a pkg/*: adapt to new state file targets
Prepare for handling pkg state with files. So it requires having the
path defined before declaring targets. In addition, it cleans up the
old git-download target.
2020-01-08 20:55:19 +01:00
9334014b13
pkg/ccn-lite: cleanup Makefile.dep
There's no need to load dependency modules if the package is used. This is already managed by the build system
2019-11-18 08:52:38 +01:00
Cenk Gündoğan
a4bd845c81 pkg: ccn-lite: version bump 2019-08-29 21:54:20 +02:00
Juan Carrano
5dc46eb03e pkg/ccn-lite: remove dependency on tlsf-malloc.
There is no reason why this package would need tlsf. Using tlsf as
system malloc is not known to work in all platforms.

With this patch CCN-Lite will use the default malloc provided by the
target's C library.
2019-08-20 17:47:25 +02:00
PeterKietzmann
0cc91a47e1 pkg/ccn-lite: suppress llvm error 2019-08-05 09:36:43 +02:00
PeterKietzmann
448e282ff3 pkg/ccn-lite: bump version 2019-08-02 10:35:39 +02:00
Juan Carrano
6b766c3cd3 sys/posix: make posix module provide only headers.
The build system contains several instances of
 INCLUDES += -I$(RIOTBASE)/sys/posix/include

This is bypassing the module management system, by directly accesing
headers without depending on a module. The module is the posix module.

That line is also added when one of the posix_* modules is requested.

According to the docs, the posix module provides headers only, but in
reality there is also inet.c.

This patch:

- Moves `inet.c` into `posix_inet`, leaving `posix` as a headers-only
  module.
- Rename `posix` as `posix_headers` to make it clear the module only
  includes headers.
- Makes `posix_*` modules depend on `posix_headers`, thus removing the
  explicit `INCLUDES+=...` in `sys/Makefile.include`.
- Ocurrences of `INCLUDES+=...` are replaced by an explicit dependency
  on `posix_headers`.
2019-03-20 12:57:13 +01:00
Gaëtan Harter
b0986d91ff
pkg/ccn-lite: check for minimal cmake version
ccn-lite does not build with cmake < 3.6.0. This checks for a minimal version
instead of failing to compile.

    cmake version 3.5.2 is not >= to minimal required 3.6.0

    Makefile:25: recipe for target '..cmake_version_supported' failed

Tested with versions 3.5.2, 3.6.0-rc1, 3.6.0, 3.6.3, 3.7.0-rc1, 3.7.0.

Note: the check used does not consider '-rcX' as 'sort -V' does not handle them
properly.
2018-08-14 15:26:58 +02:00
smlng
990a76c80c pkg: update ccn-lite and adapt shell commands
This updates the ccn-lite package version which brings in the
    latest upstream fixes for some compiler issues found on macOS
    with clang and newer GCC versions.

    A minor adaption of the RIOT shell commands is also included.
2018-08-10 10:21:24 +02:00
Joakim Nohlgård
1a1c8f6c2a
pkg/ccn-lite: build with -Wno-format-nonliteral 2018-07-18 15:29:06 +02:00
smlng
98d02dec3b
pkg/ccn-lite: remove duplicate CFLAGS definition 2018-06-20 15:34:47 +02:00
PeterKietzmann
f9eb43cf97 pkg/ccnl: clean up build dependencies 2018-06-10 13:24:28 +02:00
PeterKietzmann
917707ef1c pkg/ccnl: version bump 2018-06-10 12:11:45 +02:00
Gaëtan Harter
1de1830108
pkg: use RIOTTOOLS variable
Follow up to #9067 and part of #8821
2018-05-04 11:34:38 +02:00
Gaëtan Harter
14d6cd5010 pkg/ccn-lite: replace curly braces with parenthesis
Follow up to #8822 cleanup.
2018-04-10 14:31:00 +02:00
smlng
3ad07c6a9d pkg/ccn-lite: fix xcompile with cmake on macOS 2018-03-27 19:03:27 +02:00
328e2075e2 pkg*: replace curly braces by parenthesis in makefiles 2018-03-22 09:12:12 +01:00
Cenk Gündoğan
92b761df2f pkg: ccn-lite: minor changes to integrate latest ccn-lite features 2018-03-05 21:25:26 +01:00
smlng
0f871ad158 pkg/ccn-lite: bump version to fix compile error 2018-02-02 10:54:10 +01:00
Cenk Gündoğan
b6581289a2 pkg: ccn-lite: adapt to v2 2017-12-01 16:14:27 +01:00
Martine Lenders
31b1ceb440
gnrc_netif2: rename to gnrc_netif 2017-11-17 10:41:54 +01:00
Martine Lenders
861035f22d gnrc: integrate gnrc_netif2
Not link-able, since NDP and NC are missing (intentionally)
2017-11-07 19:08:44 +01:00
c4ebd18be2 pkg: enhance doxygen packages documentation 2017-07-03 09:56:07 +02:00
Cenk Gündoğan
b1b9d7504d pkg: ccn-lite: update to latest commit 2017-05-19 15:50:48 +02:00
8d88781e05 make: pkg: make use of PKGDIRBASE 2017-03-10 14:18:44 +01:00
Oleg Hahm
dd58ea3df3 pkg ccn-lite: remove obsolete patches 2017-01-19 17:03:42 +01:00
Oleg Hahm
63a9928e43 pkg ccn-lite: update version 2017-01-19 17:03:42 +01:00
Oleg Hahm
aac54d5a13 doc: pkg: ccn-lite: fix documentation 2017-01-16 18:04:04 +01:00
ab141c77cb pkg: ccn-lite: add license information 2017-01-08 21:54:34 +01:00
Hauke Petersen
bc232a5642 Merge pull request #5524 from miri64/gnrc_netreg/api/helper-macro
gnrc_netreg: introduce helper macro/function for entry init
2016-10-25 21:21:25 +02:00
Martine Lenders
dc45cd2610 gnrc: use new netreg helper functions everywhere 2016-10-25 18:47:30 +02:00