Skip to content

Commit

Permalink
Fix encoding in example for CVE-2022-40151.
Browse files Browse the repository at this point in the history
  • Loading branch information
joehni committed Mar 23, 2024
1 parent 6328965 commit 2cf25e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xstream-distribution/src/content/CVE-2022-40151.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ <h2 id="reproduction">Steps to Reproduce</h2>
following code snippet and unmarshal it with XStream:</p>
<div class="Source Java"><pre>String xml = new String();
int i = 0;
for( ; i &lt 10000; ++i) {
xml += "<set>";
for( ; i &lt; 10000; ++i) {
xml += "&lt;set&gt;";
}
for( ; i > 0; --i) {
xml += "</set>";
for( ; i &gt; 0; --i) {
xml += "&lt;/set&gt;";
}
</pre></div>
<div class="Source Java"><pre>XStream xstream = new XStream();
Expand Down

0 comments on commit 2cf25e6

Please sign in to comment.