forked from qt-creator/qt-creator
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:
@@ -937,7 +937,9 @@ class DumperBase:
|
|||||||
|
|
||||||
data, size, alloc = self.byteArrayDataHelper(objectName)
|
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
|
return False
|
||||||
|
|
||||||
raw = self.readMemory(data, 2 * size)
|
raw = self.readMemory(data, 2 * size)
|
||||||
|
Reference in New Issue
Block a user