osmo-mgw/tests
Neels Hofmeyr 5336f57f05 fix mgcp_verify_ci(): off-by-one in max len check
MGCP_CONN_ID_MAXLEN actually includes a terminating nul, so we need to compare
strlen() against MGCP_CONN_ID_MAXLEN-1.

Log the length if it is too long.

Add MDCX_TOO_LONG_CI test to mgcp_test.c, testing a conn id of 33 characters.
Before this patch, the test returns error code 515 meaning "not found", while
now it returns 510 meaning "invalid", showing the off-by-one. Same is
illustrated by the error log ("not found" before, "too long" now), but the
error log is not verified by mgcp_test.c.

Change-Id: I8d6cc96be252bb486e94f343a8c7cae641ff9429
2018-09-03 23:08:08 +02:00
..
legacy_mgcp use osmo_init_logging2() with proper talloc ctx 2018-04-01 16:05:05 +02:00
mgcp fix mgcp_verify_ci(): off-by-one in max len check 2018-09-03 23:08:08 +02:00
mgcp_client mgcp_client: error on too long conn id 2018-09-03 21:32:37 +02:00
Makefile.am Initially implement the new osmo-mgw and libosmo-mgcp 2017-10-05 01:40:43 +00:00
atlocal.in move openbsc/* to repos root 2017-08-27 17:44:55 +02:00
testsuite.at Initially implement the new osmo-mgw and libosmo-mgcp 2017-10-05 01:40:43 +00:00
vty_test_runner.py split off osmo-mgw: remove files, apply build, rename 2017-08-30 15:04:52 +02:00