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

18807 Commits

Author SHA1 Message Date
d93ecab880
sock_util: Add terminator to host-port string
Add missing null terminator to the returned host-port string in
sock_udp_ep_fmt
2018-07-19 22:07:18 +02:00
b8a494fb76
sock_util: Prevent overflow in sock_urlsplit
This adds a length check to verify if the host-port part of the URL fits
in the supplied buffer
2018-07-19 22:07:18 +02:00
3096823ab4
sock_util: Allow URLs without path as valid
URLs without a path were treated as invalid, while according to the URL
specification they are valid

Also fixes a missing null terminator in the returned path
2018-07-19 22:07:18 +02:00
3402e3509c
sock_util: Prevent overflow in _find_pathstart
Limit the number of scanned chars in _find_pathstart to the predefined
size
2018-07-19 22:07:18 +02:00
b0309145f0
sock_util: Limit URL scheme size 2018-07-19 22:07:17 +02:00
Martine Lenders
adbc977370 emb6_sock_udp: fix atomic initialization 2018-07-19 20:45:53 +02:00
Martine Lenders
dbafd505fd emb6: ignore llvm warnings 2018-07-19 20:44:43 +02:00
Martine Lenders
04b58da249 tests: use literal string instead of format string for interval
`UINT16_MAX` should be the same value on all platforms, so why not use
`puts` instead of `printf` here instead. Also, `llvm` detects an issue
with using the `UINT16_MAX` macro with `PRIu16` here.
2018-07-19 20:35:00 +02:00
Martine Lenders
2412c001cf
Merge pull request #9612 from cladmi/pr/make/cflags/llvm
cflags.inc.mk: fix cflags test for llvm
2018-07-19 19:44:57 +02:00
Gaëtan Harter
c3f32182d3
Merge pull request #9613 from miri64/lis3mdl/fix/default-params
lis3mdl: fix default params
2018-07-19 19:36:27 +02:00
Martine Lenders
e986562631 lis3mdl: fix default params
In the default config .odr and .scale where switched around.
2018-07-19 19:14:08 +02:00
Gaëtan Harter
a99dd332cc
cflags.inc.mk: fix cflags test for llvm
gcc does an error but not clang, so add -Werror.
2018-07-19 18:59:20 +02:00
Andreas "Paul" Pauli
bf3ce68a86
Merge pull request #9025 from Josar/pr/timer_debug_pin
atmega timer: Interrupt Pin
2018-07-19 18:34:39 +02:00
Martine Lenders
0d3af49278
Merge pull request #9603 from miri64/gnrc_mac/fix/print-formatting
gnrc: mac: fix types according to print formatting
2018-07-19 17:18:48 +02:00
Martine Lenders
51a9ac1795
Merge pull request #9355 from gebart/pr/Wformat
cflags: add -Wformat=2 -Wformat-overflow -Wformat-truncation
2018-07-19 15:23:10 +02:00
Martine Lenders
3870def74c gnrc: mac: fix types according to print formatting
As reported by `llvm`.
2018-07-19 15:13:39 +02:00
30e683ccfe
gnrc_netif: reapply event flags on device reset
On a NETOPT_STATE set call with NETOPT_STATE_RESET the netdev device
resets the callback event flags. This requires that after the netdev
device resets, the network stack also reapplies these callback event
flags
2018-07-19 14:51:14 +02:00
Martine Lenders
e511f274fe
Merge pull request #9604 from cladmi/pr/llvm/lua
lua: remove unsupported flags for llvm
2018-07-19 14:42:13 +02:00
Gaëtan Harter
4b9a1a3460
Merge pull request #9597 from miri64/tests/fix/clang-infinite-recursion
tests: ignore infinite recursion for mpu_stack_test with clang
2018-07-19 14:09:28 +02:00
Gaëtan Harter
c509b6f05c lua: remove unsupported flags for llvm
Prevents error:

  clang: error: unknown argument: '-fstack-usage'
  clang: error: unknown argument: '-fconserve-stack'

The flags are here to print debug information and try to optimize stack but are
not required.
2018-07-19 14:06:35 +02:00
Peter Kietzmann
93fcb245c2
Merge pull request #9113 from enzingerm/master
w5100: fixed RX interrupt handling
2018-07-19 13:59:53 +02:00
Martine Lenders
27ca688736 tests: ignore infinite recursion for mpu_stack_test with clang 2018-07-19 13:52:52 +02:00
Josarn
d6c0398f3d atmega timer: Interrupt Pin
A debug pin can be used to probe timer interrupts with an oscilloscope or
 other time measurement equipment. Thus, determine when an interrupt occurs
 and how long the timer ISR takes.
 The pin should be defined in the makefile as follows:

CFLAGS += -DDEBUG_TIMER_PORT=PORTF -DDEBUG_TIMER_DDR=DDRF \
            -DDEBUG_TIMER_PIN=PORTF4
2018-07-18 20:48:17 +02:00
4c183257df
sock_util: Fix null terminator in sock_udp_ep_fmt 2018-07-18 17:44:03 +02:00
6a81a4d587
sock_util: add missing includes 2018-07-18 17:43:59 +02:00
Joakim Nohlgård
3c23c95b6f
cflags: add -Wformat=2 -Wformat-overflow -Wformat-truncation 2018-07-18 15:29:06 +02:00
Joakim Nohlgård
1a1c8f6c2a
pkg/ccn-lite: build with -Wno-format-nonliteral 2018-07-18 15:29:06 +02:00
Joakim Nohlgård
209050d382
pkg/oonf_api: Build with -Wno-format-nonliteral 2018-07-18 15:29:06 +02:00
Joakim Nohlgård
7cb21f651a
pkg/lua: build with -Wno-format-nonliteral 2018-07-18 15:29:06 +02:00
Joakim Nohlgård
2b31129ef0
sys/cbor: Fix -Wformat=2 warnings 2018-07-18 15:29:06 +02:00
Francisco Acosta
d04058b54b
Merge pull request #9579 from MichelRottleuthner/pr_stm32_fix_ram_lengths
stm32_common: fix ram length for MCUs with non-contiguous ram regions
2018-07-18 14:35:29 +02:00
Martine Lenders
9f93745734
Merge pull request #9358 from gebart/pr/cflags-cleanup
makefiles/cflags.inc.mk: Use a template for CFLAGS testing
2018-07-18 14:11:49 +02:00
Peter Kietzmann
063c54ac3d
Merge pull request #9077 from gschorcht/enc28j60-improve
enc28j60: improvements to fix #9043
2018-07-17 19:45:18 +02:00
Gunar Schorcht
738c1161c0 enc28j60: improvements to fix #9043 2018-07-17 19:19:15 +02:00
Peter Kietzmann
ab5771bbf8
Merge pull request #9587 from bergzand/pr/kw2xrf/fix_ack_req
kw2xrf: Fix ack flag handling
2018-07-17 18:43:26 +02:00
Michel Rottleuthner
aca8953827 tests: add nucleo-f303k8 to BOARD_INSUFFICIENT_MEMORY 2018-07-17 17:52:12 +02:00
Michel Rottleuthner
31efe7411c examples: add nucleo-f334r8 to BOARD_INSUFFICIENT_MEMORY 2018-07-17 17:52:12 +02:00
Michel Rottleuthner
484ea216da examples: add nucleo-f303k8 to BOARD_INSUFFICIENT_MEMORY 2018-07-17 17:52:12 +02:00
Michel Rottleuthner
b36131eea6 cpu/stm32_common: add variable for SRAM2 length on stm32l47xxx 2018-07-17 17:52:12 +02:00
Martine Lenders
9421356f08
Merge pull request #9590 from cladmi/pr/unittest/increase_timeout
unittests: increase test timeout
2018-07-17 17:46:13 +02:00
Michel Rottleuthner
5610894ebe stm32_common: fix ram length for MCUs with non-contiguous ram
stm32l47xxx see RM0351, Rev 6, page 75
https://www.st.com/resource/en/reference_manual/dm00083560.pdf#page=75

stm32f303xx see RM0316, Rev 8, page 53
https://www.st.com/resource/en/reference_manual/dm00043574.pdf#page=53

stm32f334xx see RM0364, Rev 3, page 47
https://www.st.com/resource/en/reference_manual/dm00093941.pdf#page=47
2018-07-17 17:12:57 +02:00
Gaëtan Harter
690fdb11ab
unittests: increase test timeout
It currently takes 1m30 to run on iotlab-m3.
2018-07-17 17:00:17 +02:00
Francisco Acosta
a0a31120b2
Merge pull request #9429 from kaspar030/some_riscv_fixes
boards/hifive1: add serial terminal config
2018-07-17 14:36:29 +02:00
1dd4a46c90
Merge pull request #9584 from PeterKietzmann/pr_cc2420_max_pkt_size
drivers/cc2420: add netopt NETOPT_MAX_PACKET_SIZE
2018-07-17 14:12:10 +02:00
b21c4f6f98
kw2xrf: fix NETOPT_AUTOACK getter and setter
Missing getter for NETOPT_AUTOACK and getter should return the size of
the variable (should not propagate to the netdev_ieee802154_get
function
2018-07-17 13:58:58 +02:00
4b723859f3
kw2xrf: use ACK_REQ flag for ACK check on TX 2018-07-17 13:57:30 +02:00
Peter Kietzmann
2bc48c3953
Merge pull request #9577 from bergzand/pr/netdev/rem_default_tell_opts
drivers/radios: remove default event reporting flags
2018-07-17 13:47:33 +02:00
Martine Lenders
c6d46057b0 sixlowpan: use generic format strings instead of inttypes.h macros
We had bad experiences with those in the past when used with newlib-nano
;-)
2018-07-17 12:22:16 +02:00
Martine Lenders
ecfff3e812 sixlowpan: fix decoding of DAM in sixlowpan_print()
Destination address compression is all in the least significant nibble
of that byte in the IPHC header [[1]].

[1]: https://tools.ietf.org/html/rfc6282#section-3.1.1
2018-07-17 12:22:15 +02:00
PeterKietzmann
838b18e8f9 drivers/cc2420: add netopt NETOPT_MAX_PACKET_SIZE 2018-07-17 12:00:12 +02:00