Skip to content

Commit

Permalink
src: cpu: aarch64: xbyak_aarch64: Fix crash in getFilePathMaxTailNumP…
Browse files Browse the repository at this point in the history
…lus1

The original fix: fujitsu/xbyak_aarch64#95
  • Loading branch information
igorsafo committed Nov 18, 2023
1 parent f2ffb58 commit 3e15c61
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cpu/aarch64/xbyak_aarch64/src/util_impl_linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ class CpuInfoLinux : public CpuInfo {
strncat(file_pattern, "[0-9]+", 16);

DIR *dir = opendir(dir_path);
if (dir == NULL)
return 0;
struct dirent *dp;

dp = readdir(dir);
Expand Down

0 comments on commit 3e15c61

Please sign in to comment.