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

Fix: fix and refactor st41 possible errors #972

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

DawidWesierski4
Copy link
Collaborator

  • Fix possible null pointer reference in app_tx_fmd_init

  • Fix: coveriy out of band issue

  • Increate quality of tx_fastmetadata_session_build_packet code

  • coverity fix: fixing less-than-zero comparison

  • add st41 context app multithread access error

  • Add error message when the st41 functionality of RxTx app detects multithread access to the contex
    app resource, which should not be shared.

Fixes: c43152d

Co-developed-by: Aleksandr Ivanov aleksandr.ivanov@intel.com
Co-developed-by: Kolelis, Szymon szymon.kolelis@intel.com

* Fix possible null pointer reference in
app_tx_fmd_init

* Fix: coveriy out of band issue

* Increate quality of
tx_fastmetadata_session_build_packet code

* coverity fix:  fixing less-than-zero comparison

* add st41 context app multithread access error

* Add error message when the st41 functionality of
RxTx app detects multithread access to the contex
app resource, which should not be shared.

Fixes: c43152d

Co-developed-by: Aleksandr Ivanov <aleksandr.ivanov@intel.com>
Co-developed-by: Kolelis, Szymon <szymon.kolelis@intel.com>
Copy link
Collaborator

@PanKaker PanKaker left a comment

Choose a reason for hiding this comment

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

LGTM

@DawidWesierski4 DawidWesierski4 merged commit 664344a into OpenVisualCloud:main Sep 17, 2024
25 of 30 checks passed
@@ -426,6 +430,12 @@ static void tx_fastmetadata_session_build_packet(
uint16_t data_item_length =
(data_item_length_bytes + 3) / 4; /* expressed in number of 4-byte words */

if (rte_pktmbuf_data_len(pkt) < sizeof(*hdr) + data_item_length) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

instead of (data_item_length), there should be (data_item_length * 4) used.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Resolved in:
#975

DawidWesierski4 added a commit to DawidWesierski4/Media-Transport-Library that referenced this pull request Sep 18, 2024
* Fix possible null pointer reference in app_tx_fmd_init

* Fix: coveriy out of band issue

* Increate quality of tx_fastmetadata_session_build_packet code

* coverity fix:  fixing less-than-zero comparison

* add st41 context app multithread access error

* Add error message when the st41 functionality of RxTx app detects
multithread access to the contex
app resource, which should not be shared.

Fixes: c43152d

Co-developed-by: Aleksandr Ivanov <aleksandr.ivanov@intel.com>
Co-developed-by: Kolelis, Szymon <szymon.kolelis@intel.com>
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.

3 participants