EmBitz
SVD file crash on empty content [solved] - Printable Version

+- EmBitz (https://www.embitz.org/forum)
+-- Forum: IDE (https://www.embitz.org/forum/forum-1.html)
+--- Forum: Bug report (https://www.embitz.org/forum/forum-8.html)
+--- Thread: SVD file crash on empty content [solved] (/thread-163.html)



SVD file crash on empty content [solved] - jdubois - 12-04-2023

Empty description elements in an SVD file appear to crash EmBitz. (EmBitz 2.50 on Windows 11)

The below small SVD file will crash Embitz when I run "Start/Stop Debug Session".  If I add some text to the description element, it does not crash.

<?xml version="1.0" encoding="utf-8"?>
<device schemaVersion="1.1" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="CMSIS-SVD_Schema_1_1.xsd">
  <name>TEST</name>
  <version>1.0</version>
  <description></description>
  <cpu>
    <name>CM0</name>
    <revision>r0p0</revision>
    <endian>little</endian>
    <mpuPresent>0</mpuPresent>
    <fpuPresent>0</fpuPresent>
    <nvicPrioBits>2</nvicPrioBits>
    <vendorSystickConfig>0</vendorSystickConfig>
  </cpu>
  <addressUnitBits>8</addressUnitBits>
  <width>32</width>
  <size>32</size>
</device>


RE: SVD file crash - embitz - 13-04-2023

I never tested that. I always used real vendor files.
I will solve this in the 2.6


RE: SVD file crash on empty content - jdubois - 13-04-2023

Me too, which is why I only discovered it now. I got hold of a pretty dirty SVD from somewhere which crashed EmBitz, but svdconv.exe said it was ok. I then tracked it down to some of the descriptions being empty.