sleepymac
4907421076
Adds an option for in-order downloading in BitTorrent.
...
A new --bt-piece-selector option is added. If left unspecified or set to
"default", the existing rarest piece selection algorithm is used. If set
to "inorder", it enables in-order downloading. This allows playing media
files while they are downloading.
2023-10-24 10:56:39 +03:00
KingLucius
edbf1bcf71
Update build.yml
2023-10-24 08:59:42 +03:00
KingLucius
f49dde679b
Update build.yml
2023-10-24 00:48:03 +03:00
KingLucius
8eff68dfb3
Update build.yml
2023-10-24 00:19:22 +03:00
KingLucius
e0c972f4f5
Update build.yml
2023-10-23 16:40:00 +03:00
KingLucius
975fa35c83
Update build.yml
2023-10-23 16:18:21 +03:00
KingLucius
c1c92c75f7
Update build.yml
2023-10-23 15:54:11 +03:00
KingLucius
d52f836fd8
Update build.yml
2023-10-23 15:31:44 +03:00
KingLucius
88315482b2
Update build.yml
2023-10-23 15:27:34 +03:00
KingLucius
b230138b9b
Update build.yml
2023-10-23 15:08:49 +03:00
KingLucius
0f1cfaa4ac
Update android.yml
2023-10-23 15:07:08 +03:00
KingLucius
d3df1d564d
Update build.yml
2023-10-23 15:06:02 +03:00
KingLucius
ee5b5cd061
Shared
2023-10-23 15:02:28 +03:00
KingLucius
c17a297fa0
Update build.yml
2023-10-23 12:06:46 +03:00
KingLucius
d6dd52e0b7
Update build.yml
2023-10-23 11:32:01 +03:00
KingLucius
918a0bba32
Update build.yml
2023-10-23 10:37:27 +03:00
KingLucius
0d53475454
Update build.yml
2023-10-23 10:30:29 +03:00
KingLucius
acf7da722a
Update build.yml
2023-10-22 17:50:24 +03:00
KingLucius
a794992b06
Static
2023-10-22 17:14:20 +03:00
KingLucius
5dda260d8c
Update android.yml
2023-10-22 15:53:01 +03:00
KingLucius
1c41dec3e8
Update android.yml
2023-10-22 14:41:12 +03:00
KingLucius
f9afe57b16
Update Dockerfile.android
2023-10-22 14:27:21 +03:00
KingLucius
2275a9e005
Update build.yml
2023-10-22 14:17:49 +03:00
KingLucius
54f47f5f9e
Update android.yml
2023-10-22 14:16:25 +03:00
KingLucius
1ddec253c4
compiler
2023-10-22 12:54:10 +03:00
KingLucius
031f99b058
--enable-libaria2
2023-10-22 12:50:21 +03:00
KingLucius
f5ec4c7914
Update android.yml
2023-10-22 12:47:36 +03:00
KingLucius
187ac31362
Update build.yml
2023-10-22 12:20:34 +03:00
KingLucius
48c1df3d72
Update build.yml
2023-10-22 11:42:13 +03:00
KingLucius
3e121b8d9e
Update android.yml
2023-10-22 11:40:56 +03:00
KingLucius
fef7f6a32f
Update build.yml
2023-10-22 11:20:28 +03:00
KingLucius
3a4222ce57
Update build.yml
2023-10-22 10:53:02 +03:00
KingLucius
6023c61424
Update android.yml
2023-10-20 09:23:26 +03:00
KingLucius
0e472da341
Update build.yml
2023-10-20 08:50:37 +03:00
KingLucius
40f2997202
Update build.yml
2023-10-19 16:10:03 +03:00
KingLucius
ea34b14534
test
2023-10-19 14:46:20 +03:00
KingLucius
3b38055e11
Merge branch 'pr/1671'
2023-10-19 14:43:57 +03:00
Tatsuhiro Tsujikawa
076dea3896
Merge pull request #2117 from egorenar/fix-formatr-string-overflow-in-logger-writeheader
...
Logger: Fix format string overflow in writeHeader()
2023-10-09 17:28:41 +09:00
Alexander Egorenkov
8718757e6c
Logger: Fix format string overflow in writeHeader()
...
This problem occurred on a 32-bit ARM OpenWRT router running Linux 6.1.
The method writeHeader() assumes that the size of struct timeval is 8 bytes
which is not true on this machine, it is 16 bytes large. Therefore, first
cast tv.tv_usec to the unsigned long type.
=========
GDB trace
=========
(gdb) c
Continuing.
Program received signal SIGSEGV, Segmentation fault.
0xb6f4f9b4 in memchr (src=src@entry=0x3b6a, c=c@entry=0x0, n=n@entry=0x7fffffff) at src/string/memchr.c:16
16 for (; ((uintptr_t)s & ALIGN) && n && *s != c; s++, n--);
0xb6f4f98c <memchr+12>: 00 00 52 e3 cmp r2, #0
0xb6f4f990 <memchr+16>: 00 30 a0 e1 mov r3, r0
0xb6f4f994 <memchr+20>: 05 00 00 1a bne 0xb6f4f9b0 <memchr+48>
0xb6f4f998 <memchr+24>: 32 00 00 ea b 0xb6f4fa68 <memchr+232>
0xb6f4f99c <memchr+28>: 03 00 13 e3 tst r3, #3
0xb6f4f9a0 <memchr+32>: 01 20 42 e2 sub r2, r2, #1
0xb6f4f9a4 <memchr+36>: 36 00 00 0a beq 0xb6f4fa84 <memchr+260>
0xb6f4f9a8 <memchr+40>: 00 00 52 e3 cmp r2, #0
0xb6f4f9ac <memchr+44>: 2d 00 00 0a beq 0xb6f4fa68 <memchr+232>
0xb6f4f9b0 <memchr+48>: 03 00 a0 e1 mov r0, r3
=> 0xb6f4f9b4 <memchr+52>: 01 c0 d3 e4 ldrb r12, [r3], #1
0xb6f4f9b8 <memchr+56>: 01 00 5c e1 cmp r12, r1
0xb6f4f9bc <memchr+60>: f6 ff ff 1a bne 0xb6f4f99c <memchr+28>
(gdb) bt
#0 0xb6f4f9b4 in memchr (src=src@entry=0x3b6a, c=c@entry=0x0, n=n@entry=0x7fffffff) at src/string/memchr.c:16
#1 0xb6f512b4 in strnlen (s=s@entry=0x3b6a <error: Cannot access memory at address 0x3b6a>, n=n@entry=0x7fffffff) at src/string/strnlen.c:5
#2 0xb6f19eb4 in printf_core (f=f@entry=0xb67d35b0, fmt=fmt@entry=0x101856 "%s.%06ld [%s] [%s:%d] ", ap=ap@entry=0xbe8f5a1c, nl_arg=nl_arg@entry=0xbe8f5a48, nl_type=<optimized out>, nl_type@entry=0xbe8f5a20) at
src/stdio/vfprintf.c:599
#3 0xb6f4b86c in vfprintf (f=0xb67d35b0, fmt=0x101856 "%s.%06ld [%s] [%s:%d] ", ap=...) at src/stdio/vfprintf.c:688
#4 0x0001d92c in aria2::OutputFile::printf (this=<optimized out>, format=0x101856 "%s.%06ld [%s] [%s:%d] ") at OutputFile.h:58
#5 0x00027910 in aria2::(anonymous namespace)::writeHeader<aria2::OutputFile> (lineNum=0xba, sourceFile=0x10d842 "HttpServer.cc", level=aria2::Logger::A2_INFO, fp=...) at Logger.cc:136
#6 aria2::Logger::writeLog (this=0xb67cf78c, level=aria2::Logger::A2_INFO, sourceFile=0x10d842 "HttpServer.cc", lineNum=0xba, msg=0xb6766280 "HTTP Server received request\nPOST /jsonrpc HTTP/1.1\r\nHost: 192.168
.1.1:6800\r\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0\r\nAccept: application/json, text/plain, *"..., msg@entry=0x10d842 "HttpServer.cc", trace=trace@entry=0x124806 "") a
t Logger.cc:196
#7 0x00028bf0 in aria2::Logger::log (this=<optimized out>, level=<optimized out>, sourceFile=<optimized out>, lineNum=<optimized out>, msg=0xb6766280 "HTTP Server received request\nPOST /jsonrpc HTTP/1.1\r\nHost
: 192.168.1.1:6800\r\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0\r\nAccept: application/json, text/plain, *"...) at Logger.cc:213
#8 0x00081708 in aria2::HttpServer::receiveRequest (this=0xb6774430) at /home/egorenar/Repositories/openwrt-rel/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-12.3.0_musl_eabi/arm-openwrt-linux-muslgnueabi/
include/c++/12.3.0/bits/basic_string.h:233
#9 aria2::HttpServerCommand::execute (this=0xb6772620) at HttpServerCommand.cc:194
#10 0x00076de4 in aria2::(anonymous namespace)::executeCommand (commands=..., statusFilter=aria2::Command::STATUS_ALL) at DownloadEngine.cc:139
#11 0x0001913c in aria2::DownloadEngine::run (oneshot=0x0, this=0xb67967e0) at DownloadEngine.cc:180
#12 aria2::MultiUrlRequestInfo::execute (this=0xb67dee6c) at MultiUrlRequestInfo.cc:361
#13 aria2::main (argv=<optimized out>, argc=<optimized out>) at main.cc:78
#14 main (argc=<optimized out>, argv=<optimized out>) at main.cc:91
(gdb) p tv
$13 = {
tv_sec = 0x652134fd,
tv_usec = 0x3b6a
}
(gdb) call sizeof(tv)
$14 = 0x10
(gdb) call sizeof(tv.tv_usec)
$15 = 0x8
(gdb) call sizeof(long)
$16 = 0x4
(gdb) call sizeof(unsigned long)
$17 = 0x4
(gdb) call sizeof(time_t)
$18 = 0x8
Signed-off-by: Alexander Egorenkov <egorenar-dev@posteo.net>
2023-10-07 14:29:01 +02:00
Tatsuhiro Tsujikawa
80d53a9e80
Merge pull request #2108 from aria2/memcpy
...
Avoid non-nil argument errors
2023-09-18 18:35:14 +09:00
Tatsuhiro Tsujikawa
d53735bf49
Merge pull request #2107 from aria2/dont-close-stderr-stdout
...
Do not close stdout and stderr
2023-09-18 18:17:19 +09:00
Tatsuhiro Tsujikawa
4fdcd22d69
Avoid non-nil argument errors
...
Use std::copy_n and std::fill_n to avoid a non-nil argument error with
memcpy/memset.
2023-09-18 17:29:48 +09:00
Tatsuhiro Tsujikawa
5047e4a4ab
Do not close stdout and stderr
2023-09-18 17:28:47 +09:00
Tatsuhiro Tsujikawa
f05deb0cb2
Merge pull request #2106 from aria2/static-check-fix
...
Static check fix
2023-09-18 11:29:23 +09:00
Tatsuhiro Tsujikawa
4c250f8a5d
Bail out if pieceLength is 0
2023-09-18 11:00:00 +09:00
Tatsuhiro Tsujikawa
1fd0e52c41
Call the member function of IOFile
2023-09-18 10:55:26 +09:00
Tatsuhiro Tsujikawa
c2109a5aca
Move instead of copy
2023-09-18 10:22:22 +09:00
Tatsuhiro Tsujikawa
f0015d2175
Merge pull request #2105 from aria2/update-sphinx_rtd_theme
...
Update sphinx_rtd_theme
2023-09-18 01:10:22 +09:00
Tatsuhiro Tsujikawa
dfc607ae74
Merge pull request #2104 from aria2/docker-mingw-update-cp
...
Dockerfile.mingw: Update how to get aria2c.exe from a container
2023-09-18 01:09:57 +09:00
Tatsuhiro Tsujikawa
b18d47c60b
Merge pull request #2103 from aria2/docker-mingw-update-libssh2-flags
...
Dockerfile.mingw: Remove deprecated libssh2 configure flags
2023-09-18 01:09:30 +09:00