libsmpp34/def_frame
Pau Espin c63971fab0 Fix Out of bounds compilation warning in OCTET8
The code in OCTET8 implementation assumes the len is placed inside the
byte preceding the memory buffer, which is true for the defined cases.
However, it creates a compilation warning. Better pass the value
directly from the struct field rather than playing addr games. this way
we also assert we require to explicitly pass the len.

Fixes lots of warning like the one below:
/home/pespin/dev/sysmocom/bin/../git/libsmpp34/src/smpp34_unpack.c: In function ‘smpp34_u
npack’:
/home/pespin/dev/sysmocom/bin/../git/libsmpp34/src/smpp34_unpack.c:147:14: warning: array
 subscript is above array bounds [-Warray-bounds]
     lenval = *((inst par) - 1);\
              ^~~~~~~~~~~~~~~~~
/home/pespin/dev/sysmocom/bin/../git/libsmpp34/def_frame/submit_sm.frame:18:2: note: in e
xpansion of macro ‘OCTET8’
  OCTET8( instancia, short_message, 254 );
  ^~~~~~

Change-Id: Id110f4e977c3becdb44cf5492c372e530ea51551
2017-09-15 20:24:25 +02:00
..
Makefile.am initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
alert_notification.frame initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
alert_notification.tlv initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
bind_receiver.frame initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
bind_receiver_resp.frame initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
bind_receiver_resp.tlv initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
bind_transceiver.frame initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
bind_transceiver_resp.frame initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
bind_transceiver_resp.tlv initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
bind_transmitter.frame initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
bind_transmitter_resp.frame initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
bind_transmitter_resp.tlv initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
cancel_sm.frame initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
clean.frame initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
dad.frame initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
data_sm.frame initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
data_sm.tlv initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
data_sm_resp.frame initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
data_sm_resp.tlv initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
deliver_sm.frame Fix Out of bounds compilation warning in OCTET8 2017-09-15 20:24:25 +02:00
deliver_sm.tlv initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
deliver_sm_resp.frame initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
header.frame initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
outbind.frame initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
query_sm.frame initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
query_sm_resp.frame initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
replace_sm.frame Fix Out of bounds compilation warning in OCTET8 2017-09-15 20:24:25 +02:00
submit_multi.dad initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
submit_multi.frame Fix Out of bounds compilation warning in OCTET8 2017-09-15 20:24:25 +02:00
submit_multi.tlv initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
submit_multi_resp.frame initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
submit_multi_resp.udad initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
submit_sm.frame Fix Out of bounds compilation warning in OCTET8 2017-09-15 20:24:25 +02:00
submit_sm.tlv initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
submit_sm_resp.frame initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
tlv.frame initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
tlv.operation initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
udad.frame initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00