[CRIU] [PATCHv2] x86/crtools: Fix null pointer dereference

Cyrill Gorcunov gorcunov at gmail.com
Thu May 2 13:08:54 MSK 2019


On Thu, May 02, 2019 at 10:36:40AM +0100, Radostin Stoyanov wrote:
> Dereferencing a null pointer is undefined behavior.
> 
> ISO/IEC 9899, clause 6.5.3.2, paragraph 4
> http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf
> 
> v2: declare x with always unused attribute. (thanks Cyrill Gorcunov)
> 
> Signed-off-by: Radostin Stoyanov <rstoyanov1 at gmail.com>
Acked-by: Cyrill Gorcunov <gorcunov at gmail.com>

Thanks!


More information about the CRIU mailing list