ctf: Fix buffer overflow traces from crashing batch import
authorMatthew Khouzam <matthew.khouzam@ericsson.com>
Wed, 26 Jun 2013 19:10:18 +0000 (15:10 -0400)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Wed, 31 Jul 2013 14:44:11 +0000 (10:44 -0400)
commit96c0f2afc76dbe7223f551cbffeba092a8b1f4f6
treeebf6b0b28dbccbcb97e978c58f85de8c4347cb9f
parentc3c19cf9690e9e3be6881aecac40c656f7f808de
ctf: Fix buffer overflow traces from crashing batch import

Buffer overflows are caused here by synthetic traces that aim to
behave maliciously. The parser already handles these attacks, but
the BufferOverflowException will cause the batch import trace wizard
to stop scanning. This fix catches buffer overflows in the validation
and warns that the error is serious.

Change-Id: Ie9156cfaac0944763e3d1dc798c42f1d64753560
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/14088
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
org.eclipse.linuxtools.lttng2.kernel.core/src/org/eclipse/linuxtools/lttng2/kernel/core/trace/LttngKernelTrace.java
org.eclipse.linuxtools.lttng2.kernel.core/src/org/eclipse/linuxtools/lttng2/kernel/core/trace/Messages.java
org.eclipse.linuxtools.lttng2.kernel.core/src/org/eclipse/linuxtools/lttng2/kernel/core/trace/messages.properties
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfTrace.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/Messages.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/messages.properties
This page took 0.046671 seconds and 5 git commands to generate.