aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/HextileDecoder.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2024-09-03 08:01:39 +0200
committerPierre Ossman <ossman@cendio.se>2024-11-06 21:06:27 +0100
commite4c60ef1985164d1207352bbfdf57ae1d7838404 (patch)
tree737d0db13dca148683ad02de5482c6a88e8d5275 /common/rfb/HextileDecoder.cxx
parent1d9b2f9984fefbc050c8e3295397ffd280e41788 (diff)
downloadtigervnc-e4c60ef1985164d1207352bbfdf57ae1d7838404.tar.gz
tigervnc-e4c60ef1985164d1207352bbfdf57ae1d7838404.zip
Use specific class for protocol problems
Make it easier to identify communication issues.
Diffstat (limited to 'common/rfb/HextileDecoder.cxx')
-rw-r--r--common/rfb/HextileDecoder.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/HextileDecoder.cxx b/common/rfb/HextileDecoder.cxx
index dc9b9be7..d440b1af 100644
--- a/common/rfb/HextileDecoder.cxx
+++ b/common/rfb/HextileDecoder.cxx
@@ -189,7 +189,7 @@ void HextileDecoder::hextileDecode(const Rect& r, rdr::InStream* is,
int w = ((wh >> 4) & 15) + 1;
int h = (wh & 15) + 1;
if (x + w > 16 || y + h > 16) {
- throw rfb::Exception("HEXTILE_DECODE: Hextile out of bounds");
+ throw ProtocolException("HEXTILE_DECODE: Hextile out of bounds");
}
ptr = buf + y * t.width() + x;
int rowAdd = t.width() - w;