Re: [dpdk-dev] [PATCH v2] pmdinfogen: allow padding after NUL terminator

2021-06-18 Thread Thomas Monjalon
27/05/2021 23:24, Dmitry Kozlyuk: > Size of string constant symbol may be larger than its length > measured up to NUL terminator. In this case pmdinfogen included padding > bytes after NUL terminator in generated source, yielding incorrect code. > > Always trim string data to NUL terminator while

Re: [dpdk-dev] [PATCH v2] pmdinfogen: allow padding after NUL terminator

2021-06-09 Thread Dmitry Kozlyuk
2021-05-28 00:24 (UTC+0300), Dmitry Kozlyuk: > Size of string constant symbol may be larger than its length > measured up to NUL terminator. In this case pmdinfogen included padding > bytes after NUL terminator in generated source, yielding incorrect code. > > Always trim string data to NUL termin

[dpdk-dev] [PATCH v2] pmdinfogen: allow padding after NUL terminator

2021-05-27 Thread Dmitry Kozlyuk
Size of string constant symbol may be larger than its length measured up to NUL terminator. In this case pmdinfogen included padding bytes after NUL terminator in generated source, yielding incorrect code. Always trim string data to NUL terminator while reading ELF. It was already done for COFF be