Commit graph

11278 commits

Author SHA1 Message Date
Treehugger Robot
113c85a25e Merge "Nullability check for getopt module." am: c5ca568b96 am: 0a531de854 am: 5e086253a5
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2568750

Change-Id: I8549830df50e9cb04e6380cfdf2161c4dd0081d8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-01 21:13:37 +00:00
Zijun Zhao
d928dd5d1a Merge "Nullability check for resource module." am: 20fa28e564 am: 7ba6b487cb am: 23d3dd3578
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2569870

Change-Id: I7028e4f1ec5bd1bd68a33085eb1ab17d5e2a6854
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-01 18:26:56 +00:00
zijunzhao
d3f2f109fc Nullability check for getopt module.
Bugs: b/245972273
Test: adb shell
Change-Id: I243bb87fe26beecd376d894b25cedd993c246880
2023-05-01 16:19:44 +00:00
Treehugger Robot
0df584e740 Merge "Nullability check for ctype_inlines module." am: 3ee441491a am: b26c07a449 am: ee8a69ea6c
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2568133

Change-Id: I77122a6537fa15631b18a45add7cebe9514ff3b4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-28 23:01:52 +00:00
zijunzhao
a23e448288 Nullability check for resource module.
Bugs: b/245972273
Test: adb shell
Change-Id: Ia875f9e0189f72317276cc28bfe6faf1f95c2908
2023-04-28 22:18:02 +00:00
Treehugger Robot
3ee441491a Merge "Nullability check for ctype_inlines module." 2023-04-28 20:57:27 +00:00
Almaz Mingaleev
8d3028ca60 Merge "Update tzcode from 2022a to 2023a." am: 8cad3f9776 am: 2ab2173c09 am: bc200e7ffc
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2567910

Change-Id: I775037a2486ef4d354ac14f8686bffddb24459b3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-28 20:35:17 +00:00
Christopher Ferris
9ebbbf48a9 Merge "Modify the wording of the mallopt." am: a12856c579 am: f0fdd0b0fb am: d0cba8a7bc
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2569770

Change-Id: I7aa6ad57ec60e87707a7abf784435b52d2bcf27d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-28 19:12:43 +00:00
Almaz Mingaleev
8cad3f9776 Merge "Update tzcode from 2022a to 2023a." 2023-04-28 18:41:33 +00:00
zijunzhao
b4e4d05439 Nullability check for ctype_inlines module.
Bugs: b/245972273
Test: adb shell
Change-Id: I7645c51d40a226cc90bfbf8587e8b094c0c38242
2023-04-28 18:02:12 +00:00
Almaz Mingaleev
d86a3ab241 Update tzcode from 2022a to 2023a.
57b8fc957a
changes the way overflows are tracked: now compiler builtins
are used instead of manual arithmetics. But as int_fast32_t on
64-bit Android takes 8 bytes, new logic behaves differently.
See time_test.cpp changes for more details.

Changes were applied using following commands:
  1) Checkout tzcode repo
  2) Prepare patches for all tzcode file using
    git diff 2022a 2023a -- <file-name> > <file-name-patch>
  3) Apply these patches to files in bionic using
    patch -p1 <file-name> <file-name-patch>

Bug: 279742606
Test: CtsBionicTestCases
Test: CtsLibcoreTestCases
Test: CtsLibcoreOjTestCases
Test: atest toybox-tests
Change-Id: I7772a90538b8185bdd2f4be6e9d1740c95509d6c
2023-04-28 16:52:53 +01:00
Christopher Ferris
e28867ca6e Modify the wording of the mallopt.
The original wording implies that memory tagging can be disabled
per thread. That is not really possible, and doesn't happen. Instead,
this option only turns off some of the memory tagging initialization.
Leave this slightly vague since it's possible this might change
in the future.

Bug: 272383932

Test: NA
Change-Id: I6333f16175edb52a38aadfc67ce7c9ce76113e59
2023-04-27 17:07:17 -07:00
Treehugger Robot
58c73a428f Merge "Nullability check for strcasecmp module." am: 028bb5473b am: b5f655f19a am: a638a3daf5
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2566619

Change-Id: I16cffdb05abb63391dabe47a8d4523c4b9af1ef8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-27 23:12:46 +00:00
Treehugger Robot
4154261877 Merge "Nullability check for swab module." am: 056ffc6b9c am: 1f8c788349 am: 376afcf94f
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2566618

Change-Id: I0ff0bb30fd4bc7e6737d5b674abb3cc0334d31fb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-27 23:12:28 +00:00
Treehugger Robot
028bb5473b Merge "Nullability check for strcasecmp module." 2023-04-27 21:20:09 +00:00
zijunzhao
88f4b1a957 Nullability check for strcasecmp module.
Bugs: b/245972273
Test: adb shell
Change-Id: Ic6322e957cccd827fe437a4a3dd2848036913f29
2023-04-27 18:03:38 +00:00
Elliott Hughes
b24caabefc Merge "C23: add timespec_getres() and the new TIME_* constants." am: 0593e7922f am: fede367249 am: af3436f9bd
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2560172

Change-Id: I853f5ce436663f46fa991b86ae14916086350207
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-27 18:02:06 +00:00
zijunzhao
628d8ca6eb Nullability check for swab module.
Bugs: b/245972273
Test: adb shell
Change-Id: I92ce194ac12cbc337932357567b8450c484f93f3
2023-04-27 18:01:33 +00:00
Treehugger Robot
68aa2377da Merge "Set __BIONIC_COMPLICATED_NULLNESS for the vsnprintf family" am: c35f7d6a84 am: a16884d29e am: 5fe6c00f78
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2566870

Change-Id: I68a12429b2dc2631b1b8e5a8d2675d297581794f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-27 16:11:39 +00:00
Elliott Hughes
0593e7922f Merge "C23: add timespec_getres() and the new TIME_* constants." 2023-04-27 15:25:06 +00:00
Treehugger Robot
c35f7d6a84 Merge "Set __BIONIC_COMPLICATED_NULLNESS for the vsnprintf family" 2023-04-27 01:50:38 +00:00
zijunzhao
e1833e54a7 Set __BIONIC_COMPLICATED_NULLNESS for the vsnprintf family
When annotating the netinet directory aosp/2552567, we realize the
argment s for vsnprintf family can be null only if the buffer size is 0.
So we correct them and add some tests to verify our assumption.

Bugs: b/245972273
Test: adb shell
Change-Id: I51063286272be0daee0d7c1453a374b1f5674481
2023-04-26 23:14:36 +00:00
Treehugger Robot
ce8c0d4f9a Merge "Nullability check for modules in the netinet directory." am: 4d1405e509 am: 9717b74aa9 am: 89ccacae93
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2552567

Change-Id: I01b373fb12d9e1aa63d68f11655c3301cebc66bf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 01:09:21 +00:00
Treehugger Robot
e4610d5312 Merge "Add SYS_riscv_flush_icache." am: 7477d79a0f am: 2e8cc07b9b am: 7170f1be37
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2562193

Change-Id: I1a03e877e4c0f800b89d25b16026d4bf6f707414
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 00:40:09 +00:00
Elliott Hughes
52541eea33 C23: add timespec_getres() and the new TIME_* constants.
Nothing to see here --- you'll want to keep using POSIX clock_gettime()
and clock_getres() instead. But portable code might use this eventually,
and it's trivial, so let's add it anyway.

(The whole "zero as an error return" precluding the direct use of
Linux's CLOCK_ constants is what really makes this a terrible API ---
we're going to have to add explicit translation any time they add a
new base.)

Test: treehugger
Change-Id: Iddb6cbe67b67b2b10fdd8b5ee654896d23deee47
2023-04-25 17:29:22 -07:00
Treehugger Robot
4d1405e509 Merge "Nullability check for modules in the netinet directory." 2023-04-25 22:35:44 +00:00
zijunzhao
577177a326 Nullability check for modules in the netinet directory.
Bugs: b/245972273
Test: adb shell
Change-Id: Ia133f55c3e93ae00b605298365f1c00396bcfba7
2023-04-25 20:10:14 +00:00
Elliott Hughes
873c1ca3cb Add SYS_riscv_flush_icache.
Fix the uapi import script to look at the riscv/asm/ directory too, and
re-run it to add the missing SYS_riscv_* entry (there's only this one)
to glibc-syscalls.h.

Test: treehugger
Change-Id: Ie52c6ca1943c05bb615932174e49e7fb79725a7b
2023-04-25 12:13:56 -07:00
Treehugger Robot
0a5eb724b5 Merge "riscv64: fix the name of Zisslpcfi." am: d3733e1edd am: 949a2b0d45 am: 73d0e3b87e
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2552295

Change-Id: Ic1a63dbf74ae3f94c7f815ba478c0b0c412575c6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-22 03:27:37 +00:00
Zijun Zhao
ec08ccacdc Merge "Nullability check for sem module." am: 727ebe08ca am: 4dd2749d3a am: 9bce3d5cab
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2552372

Change-Id: I897f6083ba82b08a4f8b81007ecba1c56012fd36
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-22 03:25:45 +00:00
Treehugger Robot
d3733e1edd Merge "riscv64: fix the name of Zisslpcfi." 2023-04-22 01:19:29 +00:00
Elliott Hughes
7663578d73 riscv64: fix the name of Zisslpcfi.
Love these risc-v extension names!

Test: N/A
Change-Id: Ieb13f82a507aa11d79650b2cf627e68f213d6a79
2023-04-21 15:32:46 -07:00
zijunzhao
271d4d2515 Nullability check for sem module.
Bugs: b/245972273
Test: adb shell
Change-Id: Ie29aa34c449300c53591557c99b6ec08ebe3efcf
2023-04-21 21:34:11 +00:00
Treehugger Robot
c266851c58 Merge "Nullability check for statvfs module." am: 417c3a197b am: 089555446c am: f5b07ae65a
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2552371

Change-Id: Ie6ac643c5b01f99208f419a99e838d6cb815640c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-21 21:31:10 +00:00
Treehugger Robot
55c70807a6 Merge "Implement C23 printf 'w' length modifiers" am: 8ec9b81378 am: 87ca1746d9 am: 10f5894571
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2532359

Change-Id: Ied6a2458fdf732c722fe7fa62c1a2435de688422
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-21 01:11:35 +00:00
zijunzhao
21e1f2d324 Nullability check for statvfs module.
Bugs: b/245972273
Test: adb shell
Change-Id: I7e28a869e4dd66a05182abe71ff121da7cfc7283
2023-04-21 00:06:14 +00:00
zijunzhao
3b846ea6e7 Implement C23 printf 'w' length modifiers
wN: Specifies that a following b, d, i, o, u, x, or X
conversion specifier applies to an integer argument with
a specific width where N is a positive decimal integer with
no leading zeros

Bug: b/271903607
Test: adb shell
Change-Id: I688f6cefeb2e5c8325b007a59935a46f4116ac29
2023-04-20 20:34:33 +00:00
Zijun Zhao
3ce75e1f66 Merge "Nullability check for select module." am: e2abfb3ddf am: ed3fc73ad1 am: df11a31153
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2550050

Change-Id: I2299c55735710aa4594f037e145bbc17ae81ae41
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20 19:53:36 +00:00
Zijun Zhao
e2abfb3ddf Merge "Nullability check for select module." 2023-04-20 17:33:46 +00:00
Treehugger Robot
224d6027d9 Merge "Nullability check for wchar module." am: 182cebf612 am: bee044207b am: 1d23754ce7
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2519858

Change-Id: I209eaf3a67471f6add6eb81560db0fb3e76fcbdb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20 10:06:58 +00:00
zijunzhao
7ce2f95e28 Nullability check for wchar module.
Bugs: b/245972273
Test: adb shell
Change-Id: I9898a1120c2364e5269633a67bf789a8bb943ba5
2023-04-20 01:41:49 +00:00
zijunzhao
271abebf58 Nullability check for select module.
Bugs: b/245972273
Test: adb shell
Change-Id: If847c46df7f1666e4d0d530b196ee3e2be6f0cb8
2023-04-20 01:19:03 +00:00
Elliott Hughes
0ea424a7ec Merge "Make tmpfile() respect $TMPDIR." am: 17b2bae190 am: 4260d4d7eb am: 2aefec48a5
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2545855

Change-Id: Ic4ac021444440a0cfc5c029f0d5f4c5d211b748b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-19 22:46:42 +00:00
Spandan Das
01a90e0883 Merge "Revert "Add versions property to libc_hwasan stubs"" am: f00cccd12b am: ddbb7a5453 am: ce5122a330
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2548050

Change-Id: I077ae8740af70976a36542923ea5b58cc15f43e4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-19 22:44:43 +00:00
Elliott Hughes
17b2bae190 Merge "Make tmpfile() respect $TMPDIR." 2023-04-19 20:01:51 +00:00
Spandan Das
a43de5cbfe Revert "Add versions property to libc_hwasan stubs"
This reverts commit fe2907c133.

Reason for revert: Breaks bionic-unit-tests b/278795547. Since the original mixed build change is being reverted for now (aosp/2547450), fe2907c133 is not needed immediately

Change-Id: I2deb06a38322bf8296d4721c840f06f35b757177
2023-04-19 17:06:24 +00:00
Elliott Hughes
8b86c0bdeb Make tmpfile() respect $TMPDIR.
Contrary to the old comment, POSIX says nothing about whether or not
tmpfile() respects $TMPDIR, and it's significantly more useful on
Android if it does (because there's no shared /tmp that everyone can
write to).

Bug: https://issuetracker.google.com/36991167
Test: treehugger
Change-Id: I3cc45adff167420f100c8ed1c63cba1ea67e9f70
2023-04-18 17:11:06 -07:00
Spandan Das
ffcc50f8bd Merge "Add versions property to libc_hwasan stubs" am: 4ae0e2f79f am: aab6a05edb am: c67e4ff7fe
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2544370

Change-Id: I66cc9ef4a371b8bb4345f57a12e41ff3849bb979
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-18 21:33:35 +00:00
Spandan Das
fe2907c133 Add versions property to libc_hwasan stubs
bp2build will generate the stub targets only if versions is not empty.

Test: b query //bionic/libc:* | grep libc_hwasan_stub_libs-current

Change-Id: Iac905497ae4955a44b7b29e2d29a2c702c86da8e
2023-04-18 16:38:46 +00:00
Zijun Zhao
704e8a8984 Merge "Nullability check for mount module." am: 7b90c81b7c am: 63fa646854 am: 7906657b83
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2539232

Change-Id: Iaacc1870f62043eb7cf462f45a762d6d809d9333
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-17 19:40:12 +00:00