summaryrefslogtreecommitdiff
path: root/board/felwinter/fw_config.c
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2021-09-13 14:10:11 -0600
committerCommit Bot <commit-bot@chromium.org>2021-09-13 21:37:38 +0000
commit699dff5876298a0c9748707feaf23fe6622c83f1 (patch)
tree4b6fdac14d582b9761ca0427c145fcc26482fdb3 /board/felwinter/fw_config.c
parent2e41189d10ac430454f6b63ea483d85cee2c5b36 (diff)
downloadchrome-ec-699dff5876298a0c9748707feaf23fe6622c83f1.tar.gz
zephyr: zmake: Bound size of relative paths for resolve_build_dir tests
In Linux, both filenames and paths are not unbounded in size. The typical constants NAME_MAX and PATH_MAX specify the maximum size (in bytes) of a file name and a file path, respectively. In Linux, these constants are 256 and 4096. The regex which was previously used here assumed file names could be infinitely long. Bound it. Additionally, we need to limit to ASCII word characters, as Unicode characters may sometimes be more than one byte. BUG=b:199769823 BRANCH=none TEST=run unit tests Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I404302ea10ec27acc9c8e6988bb6dd6050deb09a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3158895 Reviewed-by: Raul E Rangel <rrangel@chromium.org>
Diffstat (limited to 'board/felwinter/fw_config.c')
0 files changed, 0 insertions, 0 deletions