You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by co...@apache.org on 2023/06/27 05:26:40 UTC

[santuario-xml-security-java] branch main updated: Fixing codeql finding

This is an automated email from the ASF dual-hosted git repository.

coheigea pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/santuario-xml-security-java.git


The following commit(s) were added to refs/heads/main by this push:
     new d4482f1c Fixing codeql finding
d4482f1c is described below

commit d4482f1c4e515ecbacbe976dc661d19412b11e93
Author: Colm O hEigeartaigh <co...@apache.org>
AuthorDate: Tue Jun 27 06:26:26 2023 +0100

    Fixing codeql finding
---
 src/main/java/org/apache/xml/security/utils/DigesterOutputStream.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/xml/security/utils/DigesterOutputStream.java b/src/main/java/org/apache/xml/security/utils/DigesterOutputStream.java
index aa22bfd3..a9755cfc 100644
--- a/src/main/java/org/apache/xml/security/utils/DigesterOutputStream.java
+++ b/src/main/java/org/apache/xml/security/utils/DigesterOutputStream.java
@@ -46,7 +46,7 @@ public class DigesterOutputStream extends ByteArrayOutputStream {
 
     /** {@inheritDoc} */
     @Override
-    public void write(int arg0) {
+    public synchronized void write(int arg0) {
         mda.update((byte)arg0);
     }