Age | Commit message (Collapse) | Author |
|
Bug: 192743373
Test: To be verified with fuzzer test case.
Change-Id: If052fcb2b2bbc5e0bfc8cfccc51cef11b9914017
|
|
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/libcppbor/+/15110385
Change-Id: Ie9f88cfb2f561a44dd6afe7116eaced6dcef073b
|
|
Bug: 191303307
Test: Fuzzer from bug
Change-Id: I98830ec1bd77f152266f35a585d286be13a2551b
|
|
Original change: https://android-review.googlesource.com/c/platform/external/libcppbor/+/1670288
Change-Id: I501f267ae724235023bae64ea7936f1dcdf1e901
|
|
Original change: https://android-review.googlesource.com/c/platform/external/libcppbor/+/1670288
Change-Id: I187374c138a0124ffd5efac3ad3dd558136bab66
|
|
Original change: https://android-review.googlesource.com/c/platform/external/libcppbor/+/1670288
Change-Id: I3e6410ec4e3dfddf1c8d00241c175ad6307f39df
|
|
|
|
Original change: https://android-review.googlesource.com/c/platform/external/libcppbor/+/1663840
Change-Id: I10b3f39467e855be7fcdf0be9a1006962a2580bf
|
|
Original change: https://android-review.googlesource.com/c/platform/external/libcppbor/+/1663840
Change-Id: I393f03676542a63b9d0cb3d34b85ad5dc0b60e3d
|
|
Original change: https://android-review.googlesource.com/c/platform/external/libcppbor/+/1663840
Change-Id: I8e27a73ec953c0db8a44fbff11c5dc81b26e11b0
|
|
This fixes an incorrect integer cast in the handleNint function
in cppbor_parse.cpp which would trigger UBSAN failures in the
Trusty apploader.
Change-Id: Id35865e524c9837d907fe352feac783b3f7f36b0
|
|
am: 079f406f9f
Original change: https://android-review.googlesource.com/c/platform/external/libcppbor/+/1670287
Change-Id: I63f44e5294f2a799d12a9aa2ee6120f6361864f6
|
|
Original change: https://android-review.googlesource.com/c/platform/external/libcppbor/+/1670287
Change-Id: I331cd866b2abb1b9cbe3021d40be5a798691c2d7
|
|
Original change: https://android-review.googlesource.com/c/platform/external/libcppbor/+/1670287
Change-Id: I817c04110708942a2977487603f852f949160529
|
|
AOSP is the upstream source for this library.
Test: Purple is a good color for a bike shed.
Change-Id: I6be4c7ec47b15cc5fbed8091555613ef22623c28
|
|
Due to the overloading behavior in sub-classes, access to the methods
returning const types in Item were not accessible from the Item
subclasses. This change adds the using statements necessary to fix that.
Test: cd hardware/interfaces/identity && mm -j48
Change-Id: I40bff6470c5fecfb308fec527540a8fbf1abf91a
|
|
Original change: https://android-review.googlesource.com/c/platform/external/libcppbor/+/1658065
Change-Id: Ifad4b06d9fa793eb17df193ec39497a1f9ccad30
|
|
am: 57bba0cf18
Original change: https://android-review.googlesource.com/c/platform/external/libcppbor/+/1658064
Change-Id: I5433de3cbb5e69797f3f768c0a7436dbb66c0c79
|
|
Original change: https://android-review.googlesource.com/c/platform/external/libcppbor/+/1658065
Change-Id: Ib0c56ae07f6d6958df227d8978f7eee1aa6a6cbf
|
|
Original change: https://android-review.googlesource.com/c/platform/external/libcppbor/+/1658064
Change-Id: I4992142bb192776d9cacf5617084470b47c37ddd
|
|
Original change: https://android-review.googlesource.com/c/platform/external/libcppbor/+/1658065
Change-Id: I382cf2f91896465db2fbdc67e7d6afb4ee51bf61
|
|
Original change: https://android-review.googlesource.com/c/platform/external/libcppbor/+/1658064
Change-Id: I643cd7fc1fa0f5e7430adabc73b7a2536d14bf0f
|
|
Null, true and false are handled but any other simple value, or floating
pointer value, would otherwise reach the CHECK() that was expected to be
unreachable. Instead, error when an unhandled value is seen.
Test: cppbor_host_test_external
Change-Id: Idb1099bbc51649e5eb8f5fb4fa60553e8cbe7e8f
|
|
RFC 8949 defines additional information values 28, 29, 30 and 31 as
either reserved or indicating indefinite length values. Reject all of
these.
Test: cppbor_host_test_external
Change-Id: Ic9ae7630c8f75d060e4199d375c1f696699a4f66
|
|
decff6ea66 am: 7da24633c1
Original change: https://android-review.googlesource.com/c/platform/external/libcppbor/+/1588192
Change-Id: I95db2120fe0bc1c98b27a914bbe1193d6062d775
|
|
decff6ea66
Original change: https://android-review.googlesource.com/c/platform/external/libcppbor/+/1588192
Change-Id: I86db18f07d7f04acc13f87d75006fc7558f8a544
|
|
Original change: https://android-review.googlesource.com/c/platform/external/libcppbor/+/1588192
Change-Id: I97ebf04460b75af783b1759a8e5816bc198cf321
|
|
This CL adds two new ViewTstr and ViewBstr Item types that hold
strings as string_view and basic_string_view<uint8_t> types
instead of std::string or std::vector<uint8_t>, respectively.
This allows for zero-copy parsing of CBOR (mainly strings),
which is useful in low-memory environments like the apploader
where CBOR data can contain large bstr values.
Bug: 115420908
Test: cppbor_host_test_external
Change-Id: I69322f0de258e3583cbd842ce240398504a1973f
|
|
ours am: 2fd1541001 -s ours
am skip reason: Change-Id Iaa423f28a08a8b8619ceff179b69b7d102a596ce with SHA-1 c285326084 is in history
Original change: undetermined
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I19b81335d4263ca4d5ced139f51afd61c8327df5
|
|
am skip reason: Change-Id Iaa423f28a08a8b8619ceff179b69b7d102a596ce with SHA-1 c285326084 is in history
Original change: undetermined
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I8ea3da8ba7194bb4e8391b9542a1f3b02d094478
|
|
Bug: 180401296
Merged-In: Iaa423f28a08a8b8619ceff179b69b7d102a596ce
Change-Id: I6a852dd1175a92e556ba415cf48822ae6ab607eb
|
|
eb3be5a339 am: d9c666acbe
Original change: https://android-review.googlesource.com/c/platform/external/libcppbor/+/1588871
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I57406a64386c65991f502bbcf44821e375b0c363
|
|
eb3be5a339
Original change: https://android-review.googlesource.com/c/platform/external/libcppbor/+/1588871
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I715eebf247da2adadd0e0055e08c042012bdafd9
|
|
Original change: https://android-review.googlesource.com/c/platform/external/libcppbor/+/1588871
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I68b59e51881ce2565f9791ee5d9ce6ab845704fc
|
|
Added SPDX-license-identifier-Apache-2.0 to:
Android.bp
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: m all
Exempt-From-Owner-Approval: janitorial work
Change-Id: Iaf70ec58fa73969cf9d7baeac57f56d745475e40
|
|
Original change: https://android-review.googlesource.com/c/platform/external/libcppbor/+/1515385
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I9d7b8d5850ea9d48126643d7e1a77344f859e6e1
|
|
Original change: https://android-review.googlesource.com/c/platform/external/libcppbor/+/1515385
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Iaa423f28a08a8b8619ceff179b69b7d102a596ce
|
|
Original change: https://android-review.googlesource.com/c/platform/external/libcppbor/+/1515385
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ic98c01b5918eda13e21f0ff8d5343f98d5286914
|
|
Original change: https://android-review.googlesource.com/c/platform/external/libcppbor/+/1515384
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ia6ef3af33c73065b3f82864e400b222d85cf26b8
|
|
be17dfffad am: cb173a1f06
Original change: https://android-review.googlesource.com/c/platform/external/libcppbor/+/1515383
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ibd29b6884faa5bd1b7d77d272c51a27405975846
|
|
Original change: https://android-review.googlesource.com/c/platform/external/libcppbor/+/1515384
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Icb8f251953eac9e5d58d9231e2c00fe76522abfa
|
|
be17dfffad
Original change: https://android-review.googlesource.com/c/platform/external/libcppbor/+/1515383
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I92a8bb0aae2636ceacc214160d1a7b4079064a65
|
|
Original change: https://android-review.googlesource.com/c/platform/external/libcppbor/+/1515384
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I1ed83527b3d731f12817e3a860e40f8b7be06251
|
|
Original change: https://android-review.googlesource.com/c/platform/external/libcppbor/+/1515383
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ic2e4d9e214c50a92d595d19e9c9a7aaddb213e91
|
|
Semantic tagging in libcppbor was a bit cumbersome to use, with tags
treated as separate items, requiring code that analyzes tagged data to
pay attention to the tags. Among other issues, that violates the
intention of semantic tagging in CBOR, which, per the RFC, does not
require decoders to understand tags. This CL changes that behavior so
that code that walks a parsed Item tree will not "see" the tags unless
it looks for them, by calling "Item::semanticTagCount()" and then
"Item::semanticTag()". Nested tags are supported.
Test: cppbor_test_external
Change-Id: Ifa99475fd0d9f369f3e379251979446a2ec262b5
|
|
This safe downcast template was never used and is hard to implement
with the coming SemanticTag changes, so this CL removes it.
Test: cppbor_test_external
Change-Id: I0d4dd8b7323653c3924080f8fb328282dbca4566
|
|
This CL changes Map storage to use a vector of pairs, which removes
the need to copy the contents twice to sort them and makes it easy to
support Map iteration. Support for recursive canonicalization is
added as well, and Map::get() uses a binary search when the map is
canonicalized.
Test: cppbor_test_external
Change-Id: Ie7cee5d504e205e1768a26ec5df8436805a6eefe
|
|
Original change: https://android-review.googlesource.com/c/platform/external/libcppbor/+/1515382
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I1c5908d510c46780c312589b5bf0782c41b9ca63
|
|
Original change: https://android-review.googlesource.com/c/platform/external/libcppbor/+/1515382
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I8858e2a6fc149eb8dd9de15bef54264b08ecf5ca
|
|
Original change: https://android-review.googlesource.com/c/platform/external/libcppbor/+/1515382
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ic1ef63c321e42104feadca4751ac54b8d88abdb4
|