mirror of
https://github.com/red0124/ssp.git
synced 2025-12-14 21:59:55 +01:00
Fix out of bounds reading for get_line_buffer, write more buffer mode unit tests
This commit is contained in:
@@ -733,10 +733,10 @@ private:
|
||||
return -1;
|
||||
}
|
||||
|
||||
c = buffer[curr_char++];
|
||||
if (curr_char >= csv_data_size) {
|
||||
return -1;
|
||||
}
|
||||
c = buffer[curr_char++];
|
||||
|
||||
// TODO maybe remove this too
|
||||
if (*lineptr == nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user