mirror of
https://github.com/red0124/ssp.git
synced 2025-01-23 04:55:20 +01:00
Fix undefined behavior when trying to fetch header information on an empty file
This commit is contained in:
parent
4bedc32b63
commit
7530be1c44
@ -155,7 +155,7 @@ public:
|
||||
return;
|
||||
}
|
||||
|
||||
if (header_.empty()) {
|
||||
if (header_.empty() && !eof()) {
|
||||
split_header_data();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user