Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit 1c10f4f

Browse files
committed
Fix support for long paths
Increases size of the line buffer in allocate_trampoline_table function, which is used for /proc/self/maps processing, so it can support longer file paths. Theoretically, 64 + 4096 (PATH_MAX) bytes should be enough, but the buffer size is increased to 8192 bytes, similarly to the buffer in get_name_from_proc_maps function (intercept.c). Ref: #109
1 parent f7cebb7 commit 1c10f4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/intercept_desc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ allocate_trampoline_table(struct intercept_desc *desc)
601601
}
602602

603603
FILE *maps;
604-
char line[0x100];
604+
char line[0x2000];
605605
unsigned char *guess; /* Where we would like to allocate the table */
606606
size_t size;
607607

0 commit comments

Comments
 (0)