merged error handling fix from RC_1_0
This commit is contained in:
parent
c6997fec24
commit
3462c061a7
|
@ -76,6 +76,9 @@
|
||||||
* almost completely changed the storage interface (for custom storage)
|
* almost completely changed the storage interface (for custom storage)
|
||||||
* added support for hashing pieces in multiple threads
|
* added support for hashing pieces in multiple threads
|
||||||
|
|
||||||
|
1.0.7 release
|
||||||
|
|
||||||
|
* introduce run-time check for torrent info-sections beeing too large
|
||||||
* fix web seed bug when using proxy and proxy-peer-connections=false
|
* fix web seed bug when using proxy and proxy-peer-connections=false
|
||||||
* fix bug in magnet link parser
|
* fix bug in magnet link parser
|
||||||
* introduce add_torrent_params flags to merge web seeds with resume data
|
* introduce add_torrent_params flags to merge web seeds with resume data
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 47ccf576c6ed7700752ba294962d8e297b1ce76f
|
Subproject commit 518a846fa769757799a6aa3fec869c5d912ff486
|
|
@ -1152,6 +1152,13 @@ namespace libtorrent
|
||||||
h.update(section.first, section.second);
|
h.update(section.first, section.second);
|
||||||
m_info_hash = h.final();
|
m_info_hash = h.final();
|
||||||
|
|
||||||
|
// the internal metadata size is only 24 bits
|
||||||
|
if (section.second >= (2<<24))
|
||||||
|
{
|
||||||
|
ec = errors::metadata_too_large;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// copy the info section
|
// copy the info section
|
||||||
m_info_section_size = section.second;
|
m_info_section_size = section.second;
|
||||||
m_info_section.reset(new char[m_info_section_size]);
|
m_info_section.reset(new char[m_info_section_size]);
|
||||||
|
|
Loading…
Reference in New Issue