Skip to content

Commit 54c2a76

Browse files
emutavchiviveksinghnarwaria
authored andcommitted
Merge pull request rdkcentral#6181 from LibertyGlobal/hridhya-narayanan-infosys/SQ_issue_Numeric_Truncation_Error_sprint_25Q2
RDKDEV-1108: Potential bug CWE-197 - Numeric Truncation Error found during static …
1 parent 90c9c70 commit 54c2a76

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

WebKitBrowser/WebKitBrowser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ namespace Plugin {
210210

211211
Core::ProxyType<Web::Response> result(PluginHost::IFactories::Instance().Response());
212212
Core::TextSegmentIterator index(
213-
Core::TextFragment(request.Path, _skipURL, request.Path.length() - _skipURL), false, '/');
213+
Core::TextFragment(request.Path, static_cast<uint32_t>(_skipURL), static_cast<uint32_t>(request.Path.length() - _skipURL)), false, '/');
214214

215215
result->ErrorCode = Web::STATUS_BAD_REQUEST;
216216
result->Message = "Unknown error";

WebKitBrowser/WebKitBrowser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ namespace Plugin {
274274
void event_statechange(const bool& suspended); // StateControl
275275

276276
private:
277-
uint8_t _skipURL;
277+
size_t _skipURL;
278278
uint32_t _connectionId;
279279
PluginHost::IShell* _service;
280280
Exchange::IWebBrowser* _browser;

0 commit comments

Comments
 (0)