• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisiónfc6e6fac1b7e22cbfd1a138faeeaf83ff0773564 (tree)
Tiempo2023-04-02 03:39:10
Autordyknon <dyknon@user...>
Commiterdyknon

Log Message

croak on parse error.

Cambiar Resumen

Diferencia incremental

--- a/lib/Text/Hjson.pm
+++ b/lib/Text/Hjson.pm
@@ -257,6 +257,7 @@ sub consume($$$$){
257257 sub decode($$){
258258 my ($self, $in) = @_;
259259 my ($end, $value) = $self->consume("root", $in, 0);
260+ croak "Invalid Hjson string" if(!defined $end);
260261 pos($in) = $end;
261262 croak "Garbage after Hjson value" if($in !~ /\G$wsc\z/g);
262263 $value