[DPDK/other Bug 1645] The last EAL argument is replaced by the program name in argv[]

bugzilla at dpdk.org bugzilla at dpdk.org
Mon Feb 3 04:56:02 CET 2025


https://bugs.dpdk.org/show_bug.cgi?id=1645

            Bug ID: 1645
           Summary: The last EAL argument is replaced by the program name
                    in argv[]
           Product: DPDK
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: other
          Assignee: dev at dpdk.org
          Reporter: nandinipersad361 at gmail.com
  Target Milestone: ---

The last EAL argument is replaced by program name in argv[] after
eal_parse_args is called. This is the intended behavior but it causes the
pointer to the last EAL argument to be lost.

Implication:
If the last EAL argument in argv[] is generated by a malloc function, changing
it will cause memory issues when freeing the argument.

Resolution/Workaround:
An application should not consider the value in argv[] as unchanged.

Affected Environment/Platform:
ALL.

Driver/Module:
Environment Abstraction Layer (EAL).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20250203/a2d21df6/attachment.htm>


More information about the dev mailing list