libosmocore/tests/ctrl
Pau Espin f5b8ed14a9 ctrl: Pre-calculate required size before allocating msgb
This commit fixes crash when response is more than ~4096 chars.
Furthermore, we now allocate only the required memory, not 4096 for all
messages, which usually don't require it.
Test needs to be adapted since it assumed there was more available space
at the end of the msgb.

Related: OS#5169
Change-Id: I0b8f370f7b08736207f9efed13a0663b5e482824
2021-06-15 16:29:44 +00:00
..
ctrl_test.c ctrl: Pre-calculate required size before allocating msgb 2021-06-15 16:29:44 +00:00
ctrl_test.ok tests: ctrl: Test received ERROR messages are handled correctly 2018-07-16 17:56:25 +00:00