commit | ec161bf0e82a7e5f2042b7406bfdb3b22b55b90f | [log] [tgz] |
---|---|---|
author | Aleksander Morgado <aleksandermj@chromium.org> | Mon Nov 13 10:38:04 2023 |
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Nov 14 18:39:23 2023 |
tree | 0a5528a555eb7c6c0c43b0117f2fe32a5ab17fc5 | |
parent | 24f7e140414bb9395113a2c399b3889e4164ff12 [diff] |
UPSTREAM: libmbim-glib,tlv: ensure TLV header is aligned when reading it Due to 32 bit alignment not being enforced in the MBIMEx messages, we cannot blindly cast the start of a struct tlv to any point in a bytearray. We use an intermediate variable to ensure alignment when processing its contents. (cherry picked from commit 93ba75ba5e443c12c9b5231727c6e9e0eda89817) BUG=b:310186023 TEST=Fuzzer test passes Change-Id: I90b7bbd3164c2c26203bed3986c815827e934411 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/libmbim/+/5028326 Reviewed-by: Eric Caruso <ejcaruso@chromium.org> Tested-by: Aleksander Morgado <aleksandermj@google.com> Commit-Queue: Aleksander Morgado <aleksandermj@google.com>
libmbim is a glib-based library for talking to WWAN modems and devices which speak the Mobile Broadband Interface Model (MBIM) protocol.
Project documentation is kept in: https://modemmanager.org/docs/libmbim/
libmbim-glib
library is released under the LGPL-2.1-or-later license.mbimcli
and mbim-network
tools are released under the GPL-2.0-or-later license.License texts can be found under the LICENSES
folder.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms, which you can find in the following link: https://www.freedesktop.org/wiki/CodeOfConduct CoC issues may be raised to the project maintainers at the following address: libmbim-devel-owner@lists.freedesktop.org