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
| ||
|
Date: Wed, 15 Jun 2016 09:50:11 +0200 From: Michal Marek <mmarek@...e.com> To: "Luis R. Rodriguez" <mcgrof@...nel.org> Cc: Julia.Lawall@...6.fr, Gilles.Muller@...6.fr, nicolas.palix@...g.fr, linux-kernel@...r.kernel.org, cocci@...teme.lip6.fr Subject: Re: [PATCH 2/4] scripts: add reqs python library On 2016-06-15 00:10, Luis R. Rodriguez wrote: > + weight = (int(rel_specs['VERSION']) << 32) + \ > + (int(rel_specs['PATCHLEVEL']) << 16) + \ > + (sublevel << 8 ) + \ > + (extra * 60) + (relmod * 2) This is going to silently break as soon as we have a version number with e.g. a time stamp embedded. And there is actually no need to convert the version string to an integer. You can convert them to arrays of components and compare the components one by one. Michal
Powered by blists - more mailing lists