commit | 29814a5374fe6f7bd79a9939c12cf3a098f59b59 | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@osmocom.org> | Fri Dec 24 11:35:57 2021 +0100 |
committer | Harald Welte <laforge@osmocom.org> | Fri Dec 24 11:35:57 2021 +0100 |
tree | 0a3817cb79d62fa1fc17c14740eed6f435c62d9f | |
parent | c809f4e494f988de8819d0efc72cad14f5a69ec9 [diff] |
iuup: Fix signed/unsigned loop counter control flow issue The use of an unsinged integer as for loop counter variable doesn't work when counting down and comparing with >= 0. The existing code would be an infinite loop if it wasn't for the (data dependent) break condition: >>> CID 243259: Control flow issues (NO_EFFECT) >>> This greater-than-or-equal-to-zero comparison of an unsigned value is always true. "i >= 0U". 572 for (i = 15; i >= 0; i--) { 573 if (match_mask & (1<<i)) { 574 iui->mode_version = i; 575 break; 576 } Change-Id: I019d0f0d8f2b167575a2883a13cca692c96961cf Closes: CID#243259
This repository contains a set of C-language libraries that form the core infrastructure of many Osmocom Open Source Mobile Communications projects.
Historically, a lot of this code was developed as part of the OpenBSC project, but which are of a more generic nature and thus useful to (at least) other programs that we develop in the sphere of Free Software / Open Source mobile communications.
There is no clear scope of it. We simply move all shared code between the various Osmocom projects in this library to avoid code duplication.
The libosmocore.git repository build multiple libraries:
The official homepage of the project is https://osmocom.org/projects/libosmocore/wiki/Libosmocore
You can clone from the official libosmocore.git repository using
git clone git://git.osmocom.org/libosmocore.git
There is a cgit interface at https://git.osmocom.org/libosmocore/
Doxygen-generated API documentation is generated during the build process, but also available online for each of the sub-libraries at https://ftp.osmocom.org/api/latest/libosmocore/
Discussions related to libosmocore 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.
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:libosmocore+status:open