Osmocom fork of Open SMPP 3.4 Library https://osmocom.org/projects/libsmpp34
Go to file
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
binaries libsmpp: Fix src != build directory build needed for dizzy 2014-09-25 20:06:17 +02:00
contrib jenkins: Add the build script from jenkins here 2016-04-13 18:59:37 -04:00
debian Use release helper from libosmocore 2017-08-28 12:20:06 +02:00
def_frame Fix Out of bounds compilation warning in OCTET8 2017-09-15 20:24:25 +02:00
def_list delete auto-generated files 2012-11-08 15:04:58 +01:00
src Fix Out of bounds compilation warning in OCTET8 2017-09-15 20:24:25 +02:00
test_apps Fix various typos in log messages 2016-05-25 20:07:55 +00:00
test_pdu bind_receiver_resp_test.c: Fix compilation warning 2017-09-15 20:24:24 +02:00
.gitignore update .gitignore 2017-08-14 19:06:36 +02:00
.gitreview Add gerrit settings 2016-12-21 14:51:49 +01:00
AUTHORS initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
COPYING initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
ChangeLog initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
Makefile.am Use release helper from libosmocore 2017-08-28 12:20:06 +02:00
NEWS initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00
README.md README.md: Make sure all hyperlinks use <> 2017-03-17 21:44:28 +01:00
TODO-RELEASE Use release helper from libosmocore 2017-08-28 12:20:06 +02:00
configure.ac Use release helper from libosmocore 2017-08-28 12:20:06 +02:00
git-version-gen Use osmocom-style versioning in Makefile, configure, debian/rules 2017-08-14 18:55:24 +02:00
libsmpp34.pc.in add pkg-config support 2012-11-08 15:05:04 +01:00

README.md

libsmpp34 - C library for SMPP 3.4

This repository contains a C-language library implementing the SMPP Protocol version 3.4 as specified by the SMPP Developers Forum.

The library was inherited from the c-open-smmp34 project, which unfortunately doesn't have any form of revision control system and hence the Osmocom Open Source Mobile Communications project has imported the v1.10 release into this git repository and performed subsequent improvements.

Homepage

The official homepage of the Osmocom version of the library is http://osmocom.org/projects/libsmpp34 while the original upstream project is found at https://sourceforge.net/projects/c-open-smpp-34/

GIT Repository

You can clone from the Osmocom libsmpp34.git repository using

git clone git://git.osmocom.org/libsmpp34.git

There is a cgit interface at http://git.osmocom.org/libsmpp34/

Documentation

API documentation is generated during the build process, but also available online from the upstream project at http://c-open-smpp-34.sourceforge.net/out-1.10/web/c-open-libsmpp34_en/index.html

Mailing List

Discussions related to libsmpp34 are happening on the openbsc@lists.osmocom.org mailing list, please see https://lists.osmocom.org/mailman/listinfo/openbsc for subscription options and the list archive.

Please observe the Osmocom Mailing List Rules when posting.

Contributing

Our coding standards are described at https://osmocom.org/projects/cellular-infrastructure/wiki/Coding_standards

We us a gerrit based patch submission/review process for managing contributions. Please see https://osmocom.org/projects/cellular-infrastructure/wiki/Gerrit for more details

The current patch queue for libosmocore can be seen at https://gerrit.osmocom.org/#/q/project:libsmpp34+status:open