From 9e5bf4ce013d0e9fd25bcb446969d230af205045 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 24 May 2026 10:48:10 +0100 Subject: Add note on performance --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 7f40941..0455230 100644 --- a/README.md +++ b/README.md @@ -329,6 +329,13 @@ For instance: To enable access when converting trusted source documents, call `EnableExternalFileAccess()`. +* The conversion may exhibit pathological performance on certain documents: + it's likely possible to craft a source document that causes high CPU or memory usage. + Depending on the performance constraints of your application and the likelihood of receiving untrusted input, + you may wish to consider isolating any calls to Mammoth, + such as running Mammoth in a separate thread with a timeout, + to prevent denial-of-service attacks. + ## Writing style maps A style map is made up of a number of style mappings separated by new lines. -- cgit v1.2.3