Re: jobs: Don't attempt to access job table for job %0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Dec 10, 2015 at 08:59:34AM +0100, Tobias Klauser wrote:
> If job %0 is (mistakenly) specified, an out-of-bounds access to the
> jobtab occurs in function getjob() if num = 0:
> 
> 	jp = jobtab + 0 - 1
> 
> Fix this by checking that the job number is larger than 0 before
> accessing the jobtab.
> 
> Signed-off-by: Tobias Klauser <tklauser@xxxxxxxxxx>

Patch applied.  Thanks!
-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux