dart-sdk/build
Vyacheslav Egorov 5ddb1b8ea7 [vm/service] Use getline to read /proc/self/smaps
Previously the code was using `fgets` with a fixed
size buffer. This lead to a confusing behavior where
lines longer than 255 characters would be read
in multiple chunks and cause crashes in the parsing code.

Additionally make extraction of the path component slightly
more robust by searching for path field forward rather than
backwards. Path might contain white space and searching
backwards might stumble on that.

This is a reland of 95474f44f1
with changes to android min-sdk to make android ARM builds
succeed (getline requires SDK 18+).

TEST=manually

Change-Id: I8b36fcd178680aed7f856bc884a5cd188a5f6e85
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/319480
Commit-Queue: Slava Egorov <vegorov@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2023-08-09 12:59:31 +00:00
..
config [vm/service] Use getline to read /proc/self/smaps 2023-08-09 12:59:31 +00:00
dart [build] Use relative paths. 2023-03-08 22:10:42 +00:00
fuchsia [fuchsia] Plumbing for the VMEX resource. 2023-06-20 19:28:18 +00:00
linux [infra] Enhance Alpine Linux sysroot support 2023-06-12 08:29:41 +00:00
mac Spelling build 2023-01-23 08:56:14 +00:00
rust [infra] Migrate scripts to python3 2021-04-15 10:10:20 +00:00
sanitizers Spelling build 2023-01-23 08:56:14 +00:00
secondary [build] Build the standard c++ library from source. 2023-05-22 23:38:58 +00:00
toolchain [build] Consistently use either gcc/binutils or clang/llvm. 2023-05-22 15:57:18 +00:00
.gitignore [infra] Support for Alpine Linux Sysroot 2023-01-19 10:36:51 +00:00
detect_host_arch.py [infra] Migrate scripts to python3 2021-04-15 10:10:20 +00:00
executable_suffix.gni Fix builds targeting Android from a Windows host gen_snapshot. 2019-06-07 00:49:33 +00:00
find_depot_tools.py [infra] Update windows build and toolchain setup python scripts. 2022-08-03 16:30:56 +00:00
gn_helpers.py Fix gn helper script to create *valid* strings for settings containing backslashes. 2021-05-19 12:35:16 +00:00
gn_run_binary.py [build] Make app snapshot build failures copy/pastable. 2021-10-14 11:51:32 +00:00
OWNERS [infra] Give VM engineers OWNERS over tools/gn.py et al. 2022-04-25 17:47:23 +00:00
README.dart.md fix(docs): corrects common typos in project documentation 2021-05-18 15:48:18 +00:00
shim_headers.gni add tools for generating shim headers 2023-04-19 01:37:48 +00:00
vs_toolchain.py [build] Remove unused pipes import from vs_toolchain.py 2023-06-06 10:45:24 +00:00

This directory was taken from a snapshot of flutter/engine/src/build/.

The snapshot was taken with a recursive copy cp -R of the directory from the flutter repository.

The contents has now diverged significantly from Flutter, and is maintained independently by the Dart team. It is used to support the GN build system.