[all-commits] [llvm/llvm-project] 23552f: [libc] Acquire the lock for scanf files (#67357)
michaelrj-google via All-commits
all-commits at lists.llvm.org
Mon Sep 25 15:00:16 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 23552fe22047f47f22c959579a3799530ef2a405
https://github.com/llvm/llvm-project/commit/23552fe22047f47f22c959579a3799530ef2a405
Author: michaelrj-google <71531609+michaelrj-google at users.noreply.github.com>
Date: 2023-09-25 (Mon, 25 Sep 2023)
Changed paths:
M libc/src/stdio/scanf_core/vfscanf_internal.h
Log Message:
-----------
[libc] Acquire the lock for scanf files (#67357)
When creating the new scanf reader design, I forgot to add back the
calls to flockfile and funlockfile in vfscanf_internal. This patch fixes
that, and also changes the system file version to use the normal
variants since ungetc_unlocked isn't always available.
More information about the All-commits
mailing list