Commit: 85a2f90d5829b68514058dbd520395a506b8c87c
Parent: 696b904b2f5fe0f272e4ff7a3390ac7b06160e1a
Author: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
Committer: Marcel Holtmann <marcel@holtmann.org>
Date: 2012-12-04 23:48:18
Tree: acee40315c2f8851798df35e15408aca673b55cd

obexd: Fix dealing with large files In C, the result of an operation has always the size of the largest operand, in this case both operands are unsigned longs, which was causing the operation to overflow on 32bit machines. The solution is to force an operand to be of a size that would not overflow and to store the result somewhere with a safe size.

Diffstat

M obexd/plugins/filesystem.c | 4 +++-

1 files changed, 3 insertions(+), 1 deletions(-)

View Full Diff | Patch