Merge "Add a security warning to PdfRenderer doc." into nyc-dev

This commit is contained in:
TreeHugger Robot
2016-04-28 00:06:02 +00:00
committed by Android (Google) Code Review

View File

@@ -129,6 +129,10 @@ public final class PdfRenderer implements AutoCloseable {
* <strong>Note:</strong> This class takes ownership of the passed in file descriptor
* and is responsible for closing it when the renderer is closed.
* </p>
* <p>
* If the file is from an untrusted source it is recommended to run the renderer in a separate,
* isolated process with minimal permissions to limit the impact of security exploits.
* </p>
*
* @param input Seekable file descriptor to read from.
*