Explorar el Código

Lua: add null character check in Unserializer

Justin Donaldson hace 9 años
padre
commit
15eab7ef24
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      std/haxe/Unserializer.hx

+ 1 - 0
std/haxe/Unserializer.hx

@@ -170,6 +170,7 @@ class Unserializer {
 		var p1 = pos;
  		while( true ) {
  			var c = get(pos);
+			if( StringTools.isEof(c)) break;
  			// + - . , 0-9
  			if( (c >= 43 && c < 58) || c == "e".code || c == "E".code )
  				pos++;