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

Thomas Monjalon thomas at monjalon.net
Fri Jun 18 16:39:17 CEST 2021


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 reading ELF.
> It was already done for COFF because there's no symbol size.
> 
> Bugzilla ID: 720
> Fixes: f0f93a7adfee ("buildtools: use Python pmdinfogen")
> 
> Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk at gmail.com>

Applied, thanks




More information about the dev mailing list