lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 18 Jul 2023 20:19:13 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Arkadiusz Kubalewski <arkadiusz.kubalewski@...el.com>
Cc: donald.hunter@...il.com, netdev@...r.kernel.org, davem@...emloft.net,
 pabeni@...hat.com, edumazet@...gle.com
Subject: Re: [PATCH net-next v3 2/2] tools: ynl-gen: fix parse multi-attr
 enum attribute

On Tue, 18 Jul 2023 18:22:25 +0200 Arkadiusz Kubalewski wrote:
> +            if 'enum' in attr_spec:
> +                decoded = self._decode_enum(int.from_bytes(attr.raw, "big"), attr_spec)

why int.from_bytes(attr.raw, "big")?
'decoded' already holds the integer at this point

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ