Skip to content

RDKB-62889: Reduce Repetitive logging#300

Merged
anoopchelakkode merged 5 commits into
developfrom
features/remove_repetitive_logs
May 13, 2026
Merged

RDKB-62889: Reduce Repetitive logging#300
anoopchelakkode merged 5 commits into
developfrom
features/remove_repetitive_logs

Conversation

@suriya-prem
Copy link
Copy Markdown
Contributor

RDKB-62889: Reduce Repetitive logging

Reason for change: Remove unwanted logs.
Test Procedure: Check firewall debug log file
Risks: Low
Priority: P1
Signed-off-by: Suriyanarayanan_MP@comcast.com

suriya-prem and others added 2 commits May 5, 2026 07:12
Reason for change: Remove unwanted logs.
Test Procedure: Check firewall debug log file
Risks: Low
Priority: P1
Copilot AI review requested due to automatic review settings May 6, 2026 07:20
@suriya-prem suriya-prem requested review from a team as code owners May 6, 2026 07:20
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR (RDKB-62889) reduces repetitive firewall debug logging by removing several “enter/exit/inside” FIREWALL_DEBUG statements and a couple of MAPT-related debug blocks in port-forwarding paths.

Changes:

  • Removed redundant FIREWALL_DEBUG messages from WAN failover helper functions.
  • Removed MAPT “feature enable” debug blocks (and related flag usage) from single/range port forwarding code paths.
  • Removed “Entering/Exiting” debug logs in remote_access_set_proto().
Comments suppressed due to low confidence (1)

source/firewall/firewall.c:6324

  • Potential buffer handling bugs: syscfg_get is called with sizeof(port) (port is a pointer parameter), so it will only read a pointer-sized amount into httpport rather than the full buffer. Also, under CONFIG_CCSP_WAN_MGMT_PORT, strcpy(httpport, tmpQuery) can overflow httpport (64) because tmpQuery is MAX_QUERY (256). Use the destination buffer size for syscfg_get and a bounded copy (and ideally validate the port string length/content) before storing into httpport.
        ret = syscfg_get(NULL, "mgmt_wan_httpport", httpport, sizeof(port));
#if defined(CONFIG_CCSP_WAN_MGMT_PORT)
          tmpQuery[0] = '\0';
          ret = syscfg_get(NULL, "mgmt_wan_httpport_ert", tmpQuery, sizeof(tmpQuery));
          if(ret == 0)
              strcpy(httpport, tmpQuery);
#endif

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread source/firewall/firewall.c
Comment thread source/firewall/firewall.c
Copilot AI review requested due to automatic review settings May 12, 2026 02:47
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread source/firewall/firewall.c
@anoopchelakkode anoopchelakkode merged commit 0fbe6af into develop May 13, 2026
10 of 11 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators May 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants