From 44a53736ff301777c1928da396cf2f837632da64 Mon Sep 17 00:00:00 2001 From: cui fliter Date: Tue, 23 Aug 2022 16:18:13 +0800 Subject: [PATCH] fix some typos Signed-off-by: cui fliter --- doc/upx.pod | 2 +- src/p_wcle.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/upx.pod b/doc/upx.pod index aa68b28c..2cfce6ca 100644 --- a/doc/upx.pod +++ b/doc/upx.pod @@ -49,7 +49,7 @@ Please report all problems or suggestions to the authors. Thanks. IMPORTANT NOTE: B inherits the security context of any files it handles. This means that packing, unpacking, or even testing or listing a file requires -the same security considerations as acutally executing the file. +the same security considerations as actually executing the file. Use B on trusted files only! diff --git a/src/p_wcle.cpp b/src/p_wcle.cpp index 1d8958c1..d564e82c 100644 --- a/src/p_wcle.cpp +++ b/src/p_wcle.cpp @@ -622,7 +622,7 @@ void PackWcle::decodeFixups() } // Guard against run-away. static unsigned char const blank[9] = {0}; - if (q > (oimage + ph.u_len - sizeof(blank)) // catastrohpic worst case + if (q > (oimage + ph.u_len - sizeof(blank)) // catastrophic worst case || !memcmp(blank, q, sizeof(blank)) // no-good early warning ) { char msg[50]; snprintf(msg, sizeof(msg),