code-google-com / codimension

Automatically exported from code.google.com/p/codimension
0 stars 0 forks source link

Crashes on ill-formed hex string literal #399

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open new file
2. type: a='\x4'

What is the expected output? What do you see instead?
crash

What version of the product are you using? On what operating system?
linux( CentOS )

Please provide any additional information below.

Original issue reported on code.google.com by mzu2...@gmail.com on 8 Aug 2013 at 1:07

GoogleCodeExporter commented 9 years ago

Original comment by sergey.s...@gmail.com on 8 Aug 2013 at 2:06

GoogleCodeExporter commented 9 years ago

Original comment by sergey.s...@gmail.com on 8 Aug 2013 at 4:24

GoogleCodeExporter commented 9 years ago
The problem was that the compilation of the file produced a ValueError which 
was not intercepted.
Unfortunately ValueError type does not provide the originated line number so 
there is no way to highlight the line and therefore the error is ignored.

The same story may happened with TypeError in case of NULL characters in the 
buffer.

The corresponding exception handlers have been added.

Original comment by sergey.s...@gmail.com on 8 Aug 2013 at 4:28