This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] readelf: handle_core_item large right shift triggers undefined behaviour.


On Fri, 2015-09-04 at 09:33 +0200, Mark Wielaard wrote:
> I prefer the simpler: if (n < sizeof (w) * 8) w >>= n; else w = 0;
> Which simply states what value we expect for w.

I pushed this version to master now.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]