tanelpoder / 0xtools

0x.Tools: X-Ray vision for Linux systems
https://0x.tools
GNU General Public License v2.0
1.46k stars 115 forks source link

ubuntu 18 error while running make #9

Closed moustafa1977 closed 3 years ago

moustafa1977 commented 4 years ago

make gcc -I include -Wall -o bin/xcapture src/xcapture.c src/xcapture.c: In function ‘main’: src/xcapture.c:392:41: warning: ‘%s’ directive writing up to 255 bytes into a region of size 94 [-Wformat-overflow=] sprintf(dirpath, "/proc/%s", pde->d_name); ^~ src/xcapture.c:392:17: note: ‘sprintf’ output between 7 and 262 bytes into a destination of size 100 sprintf(dirpath, "/proc/%s", pde->d_name); ^~~~~~~~~ src/xcapture.c:401:49: warning: ‘%s’ directive writing up to 255 bytes into a region of size 94 [-Wformat-overflow=] sprintf(dirpath, "/proc/%s/task", pde->d_name); ^~ src/xcapture.c:401:25: note: ‘sprintf’ output between 12 and 267 bytes into a destination of size 100 sprintf(dirpath, "/proc/%s/task", pde->d_name); ^~~~~~~~~~ root@sql3:/home/moustafa_ahmed/0xtools# lsb_release No LSB modules are available. root@sql3:/home/moustafa_ahmed/0xtools# cat /etc/issue Ubuntu 18.04.5 LTS \n \l

fleers commented 4 years ago

Same on 20.04

tanelpoder commented 4 years ago

Yep, noted. These are compilation warnings, the build itself succeeds (xcapture will show up in the bin directory).

I'll fix these warnings in v1.1

tanelpoder commented 3 years ago

just (finally) pushed the fix to the main branch in the repo. haven't bumped up the version yet.