Home Hex Edit Home Page
Hex Edit Features Hex Edit Features
Button Testimonials
Button Screen Shots
Button Downloads
Button Forums Home
Button HexEdit FAQ
Button Known Bugs
about help privacy register
Forums
Search Members Help

» Welcome Guest
[ Log In :: Register ]

 

[ Track This Topic :: Email This Topic :: Print this topic ]

reply to topic new topic new poll
Topic: Crash in template with >3.2< Next Oldest | Next Newest >
 Post Number: 1
xfr3386 Search for posts by this member.

Avatar



Group: Members
Posts: 1
Joined: Apr. 2012

Member Rating: None
PostIcon Posted on: Apr. 03 2012,10:48  Skip to the next post in this topic. Ignore posts   QUOTE

I created a template in HexEdit 3.2.  

When I open a file using it in any version after 3.2 HexEdit gives me an error dialog "Template Scan Error : Unexpected EOF".  If I hit OK it hangs and chews up memory until I kill it.  I can still use 3.2 with it without a problem.

I don't see any way to attach here so here is the template file.  Anyone see anything obvious that could be causing the issue?

CODE
<?xml version="1.0"?>
<!DOCTYPE binary_file_format SYSTEM "BinaryFileFormat.dtd">
<binary_file_format name="dbmain" type_name="" comment="">
   <define_struct type_name="three_byte_int" comment="" expr="">
       <data type="int" name="first_byte" format="signed" len="1" display=""/>
       <data type="int" name="last_bytes" format="unsigned" len="2" display="" byte_order="big"/>
   </define_struct>
   <define_struct type_name="Section" comment="" expr="">
       <use_struct name="header" expr="" type_name="header" comment=""/>
       <for name="entries" count="" stop_test="sub_entry.length == 0" type_name="" comment="">
           <use_struct name="sub_entry" expr="" type_name="entry" comment=""/>
       </for>
       <data type="none" name="rest" len="(4096*header.section_size)-((header.section_length.first_byte &lt;&lt; 16) | header.section_length.last_bytes)-12"/>
   </define_struct>
   <define_struct type_name="entry" comment="" expr="">
       <data type="int" name="length" format="unsigned" len="1" display="" domain="this &gt; 0"/>
       <data type="int" name="name_length" format="signed" len="1" display="" domain="length &gt; 0"/>
       <data type="string" name="name" format="ascii" len="name_length-1" display="" domain="length &gt; 0"/>
       <data type="string" name="data" len="length-name_length-1" format="ascii" domain="length &gt; 0" display=""/>
   </define_struct>
   <define_struct type_name="header" comment="" expr="">
       <data type="int" name="section_size" len="1" format="signed" display=""/>
       <use_struct name="section_length" expr="" type_name="three_byte_int" comment=""/>
       <eval expr="(section_length.first_byte &lt;&lt; 16) | section_length.last_bytes" display_error="false" display_result="false" comment=""/>
       <data type="none" name="section_header_CRC" len="1"/>
       <data type="none" name="section_data_crc" len="3"/>
       <data type="int" name="section_name_length" len="1" format="signed" display=""/>
       <data type="string" name="section_name" format="ascii" display="" len="section_name_length-1"/>
   </define_struct>
   <for name="dbmain" count="" stop_test="" type_name="" comment="">
       <use_struct name="block" expr="" type_name="Section" comment=""/>
   </for>
   <data type="none" name="none"/>
</binary_file_format>
Offline
Top of Page Profile Contact Info 
 Post Number: 2
andrew Search for posts by this member.

Avatar



Group: Super Administrators
Posts: 635
Joined: Oct. 2003

Member Rating: 4
PostIcon Posted on: Jun. 06 2012,03:18 Skip to the previous post in this topic.  Ignore posts   QUOTE

Hi, I am still looking at this.

--------------
Andrew Phillips
Moderator of Forums and creator of Hex Edit
Offline
Top of Page Profile Contact Info WEB 
1 replies since Apr. 03 2012,10:48 < Next Oldest | Next Newest >

[ Track This Topic :: Email This Topic :: Print this topic ]


 
reply to topic new topic new poll

» Quick Reply Crash in template with >3.2
iB Code Buttons
You are posting as:

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code