From 094b66f592486406dac96aa1af47829f87a76e5f Mon Sep 17 00:00:00 2001
From: Marcus Lundblad Add paragraph in security section about protecting agains malicious thumbnail dimensions in offer. Fixed a typo. This documents defines a way to include a thumbnail image as an additional metadata in a file transfer. When a client wishes to supply a thumbnail in a transfer offer, it can do so by including an extra ]]> element as show in the following exaples. When a client wishes to supply a thumbnail in a transfer offer, it can do so by including an extra ]]> element as shown in the following exaples.
A client MUST not rely on the values specified for the width and height of a thumbnail to allocate a bitmap data buffer for the thumbnail, to prevent possible DoS attacks. Also a client SHOULD apply implementation-specific limits on the thumbnails, if using these values to pepare a UI element for the thumbnail image, of f.ex. 128x128 pixels, values exceeding theese would then be truncated and the thumbnail image scaled down when received.
This document requires no interaction with &IANA;.