Skip to content

Commit 46bc197

Browse files
undingenmaksfb
authored andcommitted
[PR] bolt_rt: getBinaryPath() increase max file path
Summary: Increase the hard limit from 256 to 4096. This fixes the 'Assertion failed: failed to open binary path' error I'm seeing. (cherry picked from FBD31911946)
1 parent 1ccc3d5 commit 46bc197

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bolt/runtime/instr.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ bool parseAddressRange(const char *Str, uint64_t &StartAddress,
611611
/// /proc/self/map_files
612612
static char *getBinaryPath() {
613613
const uint32_t BufSize = 1024;
614-
const uint32_t NameMax = 256;
614+
const uint32_t NameMax = 4096;
615615
const char DirPath[] = "/proc/self/map_files/";
616616
static char TargetPath[NameMax] = {};
617617
char Buf[BufSize];

0 commit comments

Comments
 (0)