Status: New
Owner: ----

New issue 1254 by [email protected]: TypeError in kraken-1.1 stanford-crypto-aes
http://code.google.com/p/v8/issues/detail?id=1254

I have not investigated the bug yet.
This might be the expected behaviour and an error in Kraken.

Bug observed on x86 and ARM, from
revision 7168: Strict mode ThrowTypeError functions for
- function.caller
- function.arguments
(revision identified on x86)

===== Command =====

$ ../../svn_bleeding_edge/shell tests/kraken-1.0/stanford-crypto-aes-data.js tests/kraken-1.0/stanford-crypto-aes.js

===== Output =====

tests/kraken-1.0/stanford-crypto-aes-data.js:6: TypeError: Cannot assign to read only property 'prototype' of function (a){this.h[0][0][0]|| this.w();var b,c,d,e,f=this.h[0][4],g=this.h[1];b=a.length;var h=1;if(b!==4&&b!==6&&b!==8)throw new sjcl.exception.invalid("invalid aes key size");this.a=[d=a.slice(0),e=[]];for(a=b;a<4*b+28;a++){c=d[a-1];if(a%b===0| | b===8&&a%b===4){c=f[c>>>24]<<24^f[c>>16&255]<<16^f[c>>8&255]<<8^f[c&255];if(a%b===0){c=c<<8^c>>>24^h<<24;h=h<<1^(h>>7)*283}}d[a]=d[a-b]^c}for(b=0;a;b++,a--){c=d[b&3?a:a-4];e[b]=a<=4| |b<4?c:g[0][f[c>>>24]]^g[1][f[c>>16&255]]^g[2][f[c>>8&255]]^
g[3][f[c&255]]}}
sjcl.cipher.aes.prototype={encrypt:function(a){return this.H(a,0)},decrypt:fun
                         ^
TypeError: Cannot assign to read only property 'prototype' of function (a){this.h[0][0][0]||this.w();var b,c,d,e,f=this.h[0][4],g=this.h[1];b=a.length;var h=1;if(b!==4&&b!==6&&b!==8)throw new sjcl.exception.invalid("invalid aes key size");this.a=[d=a.slice(0),e=[]];for(a=b;a<4*b+28;a++){c=d[a-1];if(a%b===0| | b===8&&a%b===4){c=f[c>>>24]<<24^f[c>>16&255]<<16^f[c>>8&255]<<8^f[c&255];if(a%b===0){c=c<<8^c>>>24^h<<24;h=h<<1^(h>>7)*283}}d[a]=d[a-b]^c}for(b=0;a;b++,a--){c=d[b&3?a:a-4];e[b]=a<=4| |b<4?c:g[0][f[c>>>24]]^g[1][f[c>>16&255]]^g[2][f[c>>8&255]]^
g[3][f[c&255]]}}
    at tests/kraken-1.0/stanford-crypto-aes-data.js:6:26

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to