> Berin, can you send the stack trace?

Not Berin, but here's the trace...again, I'm still testing, but the same
signing program seems to work ok on small files with the same structure, so
I don't think I have a bug.

This is using both a build from last month and the latest cvs. The trace is
the same for both.

The signature profile is enveloped transform + excl c14n, no inclusive
prefixes, one reference with URI of "".

The len parameter in those final calls at the crash site is 8194 (buf is
8192 in length, which triggers the exception since buf length of 8192 -
offset of 0 < 8194).

-- Scott

Thread [main] (Suspended (exception IllegalArgumentException))
        MessageDigest$Delegate(MessageDigest).update(byte[], int, int) line:
267
        MessageDigestAlgorithm.update(byte[], int, int) line: 240
        DigesterOutputStream.write(byte[], int, int) line: 54
        UnsyncBufferedOutputStream.flushBuffer() line: 45
        UnsyncBufferedOutputStream.write(int) line: 53
        CanonicalizerBase.writeCharToUtf8(char, OutputStream) line: 534
        CanonicalizerBase.outputAttrToWriter(String, String, OutputStream)
line: 521
        
Canonicalizer20010315ExclOmitComments(CanonicalizerBase).canonicalizeSubTree
(Node, NameSpaceSymbTable) line: 213
        
Canonicalizer20010315ExclOmitComments(CanonicalizerBase).canonicalizeSubTree
(Node, NameSpaceSymbTable) line: 224
        
Canonicalizer20010315ExclOmitComments(CanonicalizerBase).canonicalizeSubTree
(Node, NameSpaceSymbTable) line: 224
        
Canonicalizer20010315ExclOmitComments(CanonicalizerBase).canonicalizeSubTree
(Node, NameSpaceSymbTable) line: 224
        
Canonicalizer20010315ExclOmitComments(CanonicalizerBase).canonicalizeSubTree
(Node, NameSpaceSymbTable) line: 224
        
Canonicalizer20010315ExclOmitComments(CanonicalizerBase).canonicalizeSubTree
(Node, NameSpaceSymbTable) line: 177
        
Canonicalizer20010315ExclOmitComments(CanonicalizerBase).engineCanonicalizeS
ubTree(Node, Node) line: 131
        
Canonicalizer20010315ExclOmitComments(Canonicalizer20010315Excl).engineCanon
icalizeSubTree(Node, String, Node) line: 101
        TransformC14NExclusive.enginePerformTransform(XMLSignatureInput,
OutputStream) line: 100
        Transform.performTransform(XMLSignatureInput, OutputStream) line:
340
        Transforms.performTransforms(XMLSignatureInput, OutputStream) line:
237
        Reference.getContentsAfterTransformation(XMLSignatureInput,
OutputStream) line: 433
        Reference.dereferenceURIandPerformTransforms(OutputStream) line: 603
        Reference.calculateDigest() line: 688
        Reference.generateDigestValue() line: 354
        SignedInfo(Manifest).generateDigestValues() line: 183
        XMLSignature.sign(Key) line: 498
        MetadataTool.main(String[]) line: 216

Reply via email to