2019-03-15 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in the rivwebcapi 'RD_ListLogs()' that caused
	corruption of log names containing multi-byte UTF-8 characters.
	* Fixed a bug in the rivwebcapi 'RD_ListLog()' that caused
	corruption of log names containing multi-byte UTF-8 characters.
	* Fixed a regression in the 'RDLogEvent::insert()' method
	that threw a segfault when applied on am empty log.
	* Fixed a bug in date/time parsing methods that could cause
	segfaults.
This commit is contained in:
Fred Gleason
2019-03-15 15:55:10 -04:00
parent 25d0f414c4
commit 2df7752270
5 changed files with 48 additions and 41 deletions

View File

@@ -376,7 +376,7 @@ int RDLogEvent::size() const
void RDLogEvent::insert(int line,int num_lines,bool preserve_trans)
{
if(!preserve_trans) {
if(log_line[line-1]!=NULL) {
if((line>0)&&(log_line[line-1]!=NULL)) {
log_line[line-1]->setEndPoint(-1,RDLogLine::LogPointer);
log_line[line-1]->setSegueStartPoint(-1,RDLogLine::LogPointer);
log_line[line-1]->setSegueEndPoint(-1,RDLogLine::LogPointer);