Debugger: Limit QObject name dumper to a more-than reasonable maximum

GDB can crash on to big chunks. Since this here is a convenience
feature only, hard-limiting it to length 200 seems ok as work-around.

Task-number: QTCREATORBUG-12330
Change-Id: Ia6ebf16f3528d91020d19851641f42c1e421fe15
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
hjk
2014-05-30 10:11:10 +02:00
parent c3285d0ed0
commit a9e1eef089

View File

@@ -937,7 +937,9 @@ class DumperBase:
data, size, alloc = self.byteArrayDataHelper(objectName)
if size == 0:
# Object names are short, and GDB can crash on to big chunks.
# Since this here is a convenience feature only, limit it.
if size <= 0 or size > 80:
return False
raw = self.readMemory(data, 2 * size)