3 Commits
Author SHA1 Message Date
Vadim Yanitskiy 9467005280 build: do distcheck for the host tools
This allows to detect missing files in the release tarballs.

Change-Id: I2352d99a91079e027ca9827c10663212a3f6292f
2026-09-07 15:42:52 +05:00
Vadim Yanitskiy 6345a2bde9 build: include version.h.tpl in the release tarballs
simtrace2-host-0.9.1.tar.bz2 does not compile because
this file is missing.  Add it to EXTRA_DIST.

make  all-recursive
make[1]: Entering directory '/build/simtrace2/src/simtrace2-0.9.1'
Making all in include
make[2]: Entering directory '/build/simtrace2/src/simtrace2-0.9.1/include'
make[2]: *** No rule to make target 'osmocom/simtrace2/version.h.tpl',
             needed by 'osmocom/simtrace2/version.h'.  Stop.
make[2]: Leaving directory '/build/simtrace2/src/simtrace2-0.9.1/include'
make[1]: *** [Makefile:452: all-recursive] Error 1
make[1]: Leaving directory '/build/simtrace2/src/simtrace2-0.9.1'
make: *** [Makefile:376: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Change-Id: I8c50c8df012b2b7eb5ee6046f14ccc4d2c07194e
Fixes: d0ad985e ("Generate a version.h file")
2026-09-07 15:35:31 +05:00
Vadim Yanitskiy fdfb02418f host/cardem: fix integer overflow in process_do_rx_da()
osmo_apdu_segment_in() may return a negative number on receipt of
"unknown APDU case", and that would crash simtrace2-cardem-pcsc:

  msgb(0x55d2cf7aa8a0): Not enough tailroom msgb_put
    (allocated 920, head at 0, len 7, tailroom 1017 < want tailroom 65534)
  backtrace() returned 19 addresses

Whenever osmo_apdu_segment_in() fails to recognize an APDU, the
communication is broken, because we don't know if we should continue
transmitting or receiving.  Only a successful return value by would
allow us to know this.  Do not crash, exit() gracefully.

Change-Id: I9e97b955a28ec886a429d744f9316e7e71be4481
Related: OS#5600
2022-07-11 16:30:47 +07:00