lkml.org 
[lkml]   [2018]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [RFC][PATCH 04/12] PGPLIB: Basic packet parser
Date
Roberto Sassu <roberto.sassu@huawei.com> wrote:

> + size_t size, datalen = *_datalen;
> ...
> + if ((int)size < 0)
> + goto too_big;

Hmmm... "if (size > INT_MAX)" is probably better.

David

\
 
 \ /
  Last update: 2018-11-12 13:33    [W:0.126 / U:0.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site