zephyr/subsys/net/lib
Paul Sokolovsky c885cb533e net: buf: linearize: Get rid of useless memset()
net_buf_linearize() used to clear the contents of output buffer,
just to fill it with data as the next step. The only effect that
would have is if less data was written to the output buffer. But
it's not reliable for a caller to rely on net_buf_linearize() for
that, instead callers should take care to handle any conditions
like that themselves. For example, a caller which wants to process
the data as zero-terminated string, must reserve a byte for it
in the output buffer explicitly (and set it to zero).

The only in-tree user which relied on clearing output buffer was
wncm14a2a.c. But either had buffer sizes calculated very precisely
to always accommodate extra trailing zero byte (without providing
code comments about this), or arguably could suffer from buffer
overruns (at least if data received from a modem was invalid and
filled up all destination buffer, leaving no space for trailing
zero).

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
2019-01-12 15:24:29 -06:00
..
app net: pkt: net_frag_linearize: Make consistent with net_buf_linearize 2019-01-08 11:06:56 +02:00
coap net: coap: return -EPERM for a resource without requested method 2019-01-02 13:04:46 +01:00
config net: Clarify logging in networking code 2018-12-07 12:00:04 +02:00
dns net: Clarify logging in networking code 2018-12-07 12:00:04 +02:00
http net: Clarify logging in networking code 2018-12-07 12:00:04 +02:00
lwm2m misra-c: Add 'U' to unsigned variable assignments in subsys/ 2018-12-04 22:51:56 -05:00
mqtt net: Clarify logging in networking code 2018-12-07 12:00:04 +02:00
mqtt_sock net: mqtt: Fix typo "seg_tag_list" 2019-01-10 11:30:33 +02:00
openthread net: openthread: remove one subcommand level in shell 2019-01-07 11:19:24 +01:00
sntp net: pkt: net_frag_linearize: Make consistent with net_buf_linearize 2019-01-08 11:06:56 +02:00
sockets net: buf: linearize: Get rid of useless memset() 2019-01-12 15:24:29 -06:00
tls_credentials drivers: wifi: simplelink: Implement setsockopt() for TLS offload 2018-11-23 09:16:21 -05:00
websocket net: Clarify logging in networking code 2018-12-07 12:00:04 +02:00
CMakeLists.txt net: coap: Move both CoAP implementations into one Kconfig 2018-11-22 09:08:46 -05:00
Kconfig net: coap: Move both CoAP implementations into one Kconfig 2018-11-22 09:08:46 -05:00