Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the YAML CPAN distribution.

Report information
The Basics
Id: 54547
Status: resolved
Priority: 0/
Queue: YAML

People
Owner: Nobody in particular
Requestors: marcel [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.70
Fixed in: 1.24



Subject: YAML::Loader bug when anchor+marshalling on the same line
Hi, I think I've found a bug in YAML::Loader. It occurs when you use an anchor and marshalling on the same line. In that case, the marshalling is done twice, with the output of the first call being the input to the second call, leading to unwanted effects. The attached patch has a test program and a proposed (naive) fix; run the new test program without the patch to see the unwanted effects. I'm sorry the test program doesn't use Test::Base like the other existing test programs, but I haven't really used Test::Base, and the kind of marshalling I'm doing in the new test program doesn't work both ways either (so no roundtrip testing). I've attached a patch against 0.70. Please let me know what you think about this issue. Thank you, Marcel P.S. I just noted that this seems related, or the same, as #52421; I still created the ticket as it might be different, and because I have a patch.
Subject: patch
Download patch
application/octet-stream 3.9k

Message body not shown because it is not plain text.

This issue has been copied to: https://github.com/ingydotnet/yaml-pm/issues/104 please take all future correspondence there. This ticket will remain open but please do not reply here. This ticket will be closed when the github issue is dealt with.
This was fixed in 1.24