Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buffer overflow #15

Open
PatNarciso opened this issue Jan 11, 2018 · 1 comment
Open

buffer overflow #15

PatNarciso opened this issue Jan 11, 2018 · 1 comment

Comments

@PatNarciso
Copy link

PatNarciso commented Jan 11, 2018

hi there --

attempting to start ./plot with a large plot number, causes a buffer overflow -- and ./plot fails to start. example provided.

:/packages/mdcct$ ./plot -k xxxxx8675309 -x 0 -a -d /media/xxxx/burstplota/ -s $(date +%s)"0000000000" -n 400000 -m 4000 -t 4
Async mode set.
Using original algorithm.
Creating plots for nonces 15157041750000000000 to 15157041750000400000 (104 GB) using 2000 MB memory and 4 threads
*** buffer overflow detected ***: ./plot terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f112c9807e5]
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x7f112ca2211c]
/lib/x86_64-linux-gnu/libc.so.6(+0x117120)[0x7f112ca20120]
/lib/x86_64-linux-gnu/libc.so.6(+0x116689)[0x7f112ca1f689]
/lib/x86_64-linux-gnu/libc.so.6(_IO_default_xsputn+0x80)[0x7f112c9846b0]
/lib/x86_64-linux-gnu/libc.so.6(_IO_vfprintf+0xc90)[0x7f112c956e00]
/lib/x86_64-linux-gnu/libc.so.6(__vsprintf_chk+0x84)[0x7f112ca1f714]
/lib/x86_64-linux-gnu/libc.so.6(__sprintf_chk+0x7d)[0x7f112ca1f66d]
./plot[0x400fb3]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f112c929830]
./plot[0x401719]
======= Memory map: ========
00400000-00408000 r-xp 00000000 fc:00 4980916 /packages/mdcct/plot
00607000-00608000 r-xp 00007000 fc:00 4980916 /packages/mdcct/plot
00608000-00609000 rwxp 00008000 fc:00 4980916 /packages/mdcct/plot
01802000-01823000 rwxp 00000000 00:00 0 [heap]
7f10af6f1000-7f10af707000 r-xp 00000000 fc:00 2621505 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f10af707000-7f10af906000 ---p 00016000 fc:00 2621505 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f10af906000-7f10af907000 rwxp 00015000 fc:00 2621505 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f10af907000-7f112c909000 rwxp 00000000 00:00 0
7f112c909000-7f112cac9000 r-xp 00000000 fc:00 2621638 /lib/x86_64-linux-gnu/libc-2.23.so
7f112cac9000-7f112ccc9000 ---p 001c0000 fc:00 2621638 /lib/x86_64-linux-gnu/libc-2.23.so
7f112ccc9000-7f112cccd000 r-xp 001c0000 fc:00 2621638 /lib/x86_64-linux-gnu/libc-2.23.so
7f112cccd000-7f112cccf000 rwxp 001c4000 fc:00 2621638 /lib/x86_64-linux-gnu/libc-2.23.so
7f112cccf000-7f112ccd3000 rwxp 00000000 00:00 0
7f112ccd3000-7f112cceb000 r-xp 00000000 fc:00 2621616 /lib/x86_64-linux-gnu/libpthread-2.23.so
7f112cceb000-7f112ceea000 ---p 00018000 fc:00 2621616 /lib/x86_64-linux-gnu/libpthread-2.23.so
7f112ceea000-7f112ceeb000 r-xp 00017000 fc:00 2621616 /lib/x86_64-linux-gnu/libpthread-2.23.so
7f112ceeb000-7f112ceec000 rwxp 00018000 fc:00 2621616 /lib/x86_64-linux-gnu/libpthread-2.23.so
7f112ceec000-7f112cef0000 rwxp 00000000 00:00 0
7f112cef0000-7f112cf16000 r-xp 00000000 fc:00 2621607 /lib/x86_64-linux-gnu/ld-2.23.so
7f112d107000-7f112d10a000 rwxp 00000000 00:00 0
7f112d112000-7f112d115000 rwxp 00000000 00:00 0
7f112d115000-7f112d116000 r-xp 00025000 fc:00 2621607 /lib/x86_64-linux-gnu/ld-2.23.so
7f112d116000-7f112d117000 rwxp 00026000 fc:00 2621607 /lib/x86_64-linux-gnu/ld-2.23.so
7f112d117000-7f112d118000 rwxp 00000000 00:00 0
7fffe0752000-7fffe0773000 rwxp 00000000 00:00 0 [stack]
7fffe07e0000-7fffe07e3000 r--p 00000000 00:00 0 [vvar]
7fffe07e3000-7fffe07e5000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
Aborted
<

thank you.

@waltercool
Copy link

Use https://github.com/alter3d/omdcct, it looks like it solved this problem.

I also got a buffer overflow, but this project seems to works nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants