2023-03-20 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in 'RDCatchEvent::read()' that caused a segfault
	when processing a 'Reload Decks' operation.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2023-03-20 13:59:55 -04:00
parent ad35505ddc
commit a6b410567d
2 changed files with 8 additions and 9 deletions

View File

@ -24014,3 +24014,6 @@
RPM package.
2023-03-17 Fred Gleason <fredg@paravelsystems.com>
* Updated the copyright notices to use an interval of 2002-2023.
2023-03-20 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'RDCatchEvent::read()' that caused a segfault
when processing a 'Reload Decks' operation.

View File

@ -2,7 +2,7 @@
//
// A container class for a Rivendell Catch Event message.
//
// (C) Copyright 2022 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2022-2023 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@ -371,14 +371,10 @@ bool RDCatchEvent::read(const QString &str)
if(f0.size()!=4) {
return false;
}
chan=f0.at(4).toInt(&ok);
if(ok&&(chan<255)) {
d_operation=op;
d_host_name=f0.at(1);
d_target_host_name=f0.at(3);
return true;
}
break;
case RDCatchEvent::NullOp:
case RDCatchEvent::LastOp: