Commit a9e1eef0 authored by hjk's avatar hjk

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: default avatarEike Ziller <eike.ziller@digia.com>
parent c3285d0e
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment