mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 23:17:21 -06:00
BUGFIX: Fixed possible crash when parsing filter file
This commit is contained in:
@@ -3,6 +3,8 @@
|
|||||||
- BUGFIX: qBittorrent now prints backtrace in terminal when segfaulting
|
- BUGFIX: qBittorrent now prints backtrace in terminal when segfaulting
|
||||||
- BUGFIX: Fixed files progress display in torrent properties
|
- BUGFIX: Fixed files progress display in torrent properties
|
||||||
- BUGFIX: Improved torrent ratio calculation
|
- BUGFIX: Improved torrent ratio calculation
|
||||||
|
- BUGFIX: Fixed possible crash when parsing filter file
|
||||||
|
- BUGFIX: Made some code optimization
|
||||||
- I18N: Updated Bulgarian and Greek translations
|
- I18N: Updated Bulgarian and Greek translations
|
||||||
|
|
||||||
* Fri Jan 9 2009 - Christophe Dumez <chris@qbittorrent.org> - v1.3.0
|
* Fri Jan 9 2009 - Christophe Dumez <chris@qbittorrent.org> - v1.3.0
|
||||||
|
|||||||
@@ -178,6 +178,7 @@ class FilterParserThread : public QThread {
|
|||||||
}
|
}
|
||||||
// Now Add to the filter
|
// Now Add to the filter
|
||||||
QStringList IP;
|
QStringList IP;
|
||||||
|
try {
|
||||||
if(IPv4) {
|
if(IPv4) {
|
||||||
//IPv4 addresses
|
//IPv4 addresses
|
||||||
IP = strStartIP.split('.');
|
IP = strStartIP.split('.');
|
||||||
@@ -195,6 +196,9 @@ class FilterParserThread : public QThread {
|
|||||||
// Apply to bittorrent session
|
// Apply to bittorrent session
|
||||||
filter.add_rule(start, last, ip_filter::blocked);
|
filter.add_rule(start, last, ip_filter::blocked);
|
||||||
}
|
}
|
||||||
|
}catch(exception){
|
||||||
|
qDebug("Bad line in filter file, avoided crash...");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
file.close();
|
file.close();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user