Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iccpd] [embedway] Fix bufferAccessOutOfBounds err #17304

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

lance369
Copy link

@lance369 lance369 commented Nov 27, 2023

Why I did it

struct CSM has char peer_itf_name[IFNAMSIZ];
and IFNAMSIZ is 16, but iccp_cli.c use MAX_L_PORT_NAME which value is 20.

Work item tracking

How I did it

use IFNAMSIZ

How to verify it

no bufferAccessOutOfBounds

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

Change-Id: I64370c663bd5b9c6133d605988980f69027c0083
Copy link

linux-foundation-easycla bot commented Nov 27, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

Change-Id: I7da205bb4a003f18c396847b535765cada220faa
This reverts commit b7964c2.

Change-Id: Id86365ca2cafd7e4770973774d675cba1da5b555
@lance369
Copy link
Author

@lguohan Could you merge this PR? bufferAccessOutOfBounds issue.

@lance369 lance369 changed the title [iccpd] Fix bufferAccessOutOfBounds err [iccpd] [embedway] Fix bufferAccessOutOfBounds err Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant