Skip to content

Flagged four USBX functions as deprecated#269

Open
fdesbiens wants to merge 1 commit into
eclipse-threadx:devfrom
fdesbiens:fdesbiens/flag-deprecations
Open

Flagged four USBX functions as deprecated#269
fdesbiens wants to merge 1 commit into
eclipse-threadx:devfrom
fdesbiens:fdesbiens/flag-deprecations

Conversation

@fdesbiens

Copy link
Copy Markdown
Contributor

Summary

Function Status Replacement
ux_device_stack_interface_get Renamed ux_device_stack_alternate_setting_get
ux_utility_string_length_get Unsafe (no bound) ux_utility_string_length_check
ux_utility_memory_free_block_best_get Already dead code (#if 0) none
ux_host_class_asix_reception_callback No longer invoked by driver none

Changes

  • ux_device_stack_interface_get.c: added #pragma message + updated DESCRIPTION.
  • ux_utility_string_length_get.c: added #pragma message + updated DESCRIPTION (no-bound overread risk).
  • ux_utility_memory_free_block_best_get.c: updated DESCRIPTION to clarify it is dead code.
  • ux_host_class_asix_reception_callback.c: updated DESCRIPTION.

Companion

Docs: eclipse-threadx/rtos-docs-asciidoc#33 (pending)

- ux_device_stack_interface_get: renamed to
  ux_device_stack_alternate_setting_get; added #pragma message.
- ux_utility_string_length_get: no upper bound on scan; can overread
  non-NUL-terminated buffers; added #pragma message directing callers
  to ux_utility_string_length_check().
- ux_utility_memory_free_block_best_get: already compiled out (#if 0);
  updated description to clarify it is dead code.
- ux_host_class_asix_reception_callback: ASIX driver redesigned;
  callback no longer invoked; updated description accordingly.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.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.

1 participant