File tree Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ All notable changes to this RDK Service will be documented in this file.
16
16
17
17
* For more details, refer to [ versioning] ( https://github.com/rdkcentral/rdkservices#versioning ) section under Main README.
18
18
19
+ ## [ 3.4.4] - 2025-05-28
20
+ ### Security
21
+ - Added catch to handle crash when reading territory
22
+
19
23
## [ 3.4.3] - 2025-01-02
20
24
### Security
21
25
- Resolved security vulnerabilities
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ using namespace std;
67
67
68
68
#define API_VERSION_NUMBER_MAJOR 3
69
69
#define API_VERSION_NUMBER_MINOR 4
70
- #define API_VERSION_NUMBER_PATCH 3
70
+ #define API_VERSION_NUMBER_PATCH 4
71
71
72
72
#define MAX_REBOOT_DELAY 86400 /* 24Hr = 86400 sec */
73
73
#define TR181_FW_DELAY_REBOOT " Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.AutoReboot.fwDelayReboot"
@@ -2711,7 +2711,8 @@ namespace WPEFramework {
2711
2711
bool SystemServices::readTerritoryFromFile ()
2712
2712
{
2713
2713
bool retValue = true ;
2714
- if (Utils::fileExists (TERRITORYFILE)){
2714
+ try {
2715
+ if (Utils::fileExists (TERRITORYFILE)){
2715
2716
ifstream inFile (TERRITORYFILE);
2716
2717
string str;
2717
2718
getline (inFile, str);
@@ -2744,9 +2745,16 @@ namespace WPEFramework {
2744
2745
}
2745
2746
inFile.close ();
2746
2747
2747
- }else {
2748
- LOGERR (" Territory is not set" );
2749
- }
2748
+ }else {
2749
+ LOGERR (" Territory is not set" );
2750
+ }
2751
+ }
2752
+ catch (...){
2753
+ LOGERR (" Exception caught while reading territory file" );
2754
+ retValue = false ;
2755
+ m_strTerritory = " " ;
2756
+ m_strRegion = " " ;
2757
+ }
2750
2758
return retValue;
2751
2759
}
2752
2760
You can’t perform that action at this time.
0 commit comments