Closed jvoisin closed 11 years ago
I cannot reproduce the segfault. Can you test it again or provide more information about the SO and environment?
Anyway, the command's syntax is:
pxo [len]
So you are going to print 0x8048337 characters.
Are you looking for this one?
pxo @ sym.main
It segfaults on every "large" number.
Here is the ziped binary in base64.
UEsDBBQDAAAIAKhhUUM9R0Fs+wsAALwdAAAFAAAAYS5vdXTtWXlMI2UU/6YtOLqlVBdXFlAbLboa
qLCiomKky+GuIiKwGs+xtAOtW1psp7p4xKPiUpGEGBM18cAjmhivRGOMJ4juukYTPGI0Go94sV7x
XFHR+nszb8owsmr80zjk9X2/7/2+99735vuGOS5v62iXJEmYh0M4BaGuq11yA/TEnkZ/g/CJ3cUa
sZ+oFMWESa4AB+LDAJIi9LkgTkivBLnSJZOsBIboNkkXPjCWpK5ECIg+XngNu1wKud0lk9RIsEOK
2e6AKiuFwEYyBwzR7S6WqARBbJJWYEjB1vWJFnl3hRDvjrlkErv9VNiF/WD/Xkg37Nb85tEHKczv
sHis77B4pDYeS2Q2B9LJwFrD5mX7CZ0bjVqzz3IeWwZxsn3rHdGWuYMr77t1hesq9cC+4lucV5cS
f3fdB9fKhz/ue+Ckj6bs+R5qae9Fedlwsw2facHk2G+zr7fhahuusOEVkKZRl0xz21OgYKhLmOpx
pFA2nKKktUgsoWTSakSkVS2eDIfiqkinQomI0GKDqlDACIU3KeHoJqU/FIuLi4ZSsYTWDwM5ImtK
UwZDsQR6BgaTCe5RxAkdG9a1KGtRd7PVUGjVmavcRZr/JCHxuvea+cdiJQKcGPeVEQYnzdgLTOMv
Y/4C1kExXLonXfJuEuykHRhH2olzTBr2KtJFqC/pYtSY9G5CrCEtC9GT/VKe+wwOr5wZqBJiLLuQ
z+dHprSiuW50Zp+Xz5oR1iN/hAsj89UyfnVcTRlEqbnjgzyOai9hmfCsjssIewlP6biccDnhh3Vc
RdhHeFLHPsJrCE/o2E+4jvAVOl5DuJHwEGD9V+fmPsx+/E1Xb3fUNwrLw1tc8qmnRV3XYJ8+BMIP
/RPWv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V0+k3rZly+6nhKKjsKFUuIPUEsBAj8DFAMAAAgAqGFRQz1HQWz7CwAAvB0AAAUAAAAA
AAAAAAAggO2BAAAAAGEub3V0UEsFBgAAAAABAAEAMwAAAB4MAAAAAA==
Steps to reproduce:
$ r2 ./a.out
[0x08048450]> pxo 123456789
zsh: segmentation fault r2 ./a.out
$
The argument you are passing is the length, not the offset. Last commit should fix that. Please verify
On Oct 17, 2013, at 13:16, jvoisin notifications@github.com wrote:
It should be precised in the documentation :<
But it segfaults on every "large" number.
Here is the ziped binary in base64.
UEsDBBQDAAAIAKhhUUM9R0Fs+wsAALwdAAAFAAAAYS5vdXTtWXlMI2UU/6YtOLqlVBdXFlAbLboa qLCiomKky+GuIiKwGs+xtAOtW1psp7p4xKPiUpGEGBM18cAjmhivRGOMJ4juukYTPGI0Go94sV7x XFHR+nszb8owsmr80zjk9X2/7/2+99735vuGOS5v62iXJEmYh0M4BaGuq11yA/TEnkZ/g/CJ3cUa sZ+oFMWESa4AB+LDAJIi9LkgTkivBLnSJZOsBIboNkkXPjCWpK5ECIg+XngNu1wKud0lk9RIsEOK 2e6AKiuFwEYyBwzR7S6WqARBbJJWYEjB1vWJFnl3hRDvjrlkErv9VNiF/WD/Xkg37Nb85tEHKczv sHis77B4pDYeS2Q2B9LJwFrD5mX7CZ0bjVqzz3IeWwZxsn3rHdGWuYMr77t1hesq9cC+4lucV5cS f3fdB9fKhz/ue+Ckj6bs+R5qae9Fedlwsw2facHk2G+zr7fhahuusOEVkKZRl0xz21OgYKhLmOpx pFA2nKKktUgsoWTSakSkVS2eDIfiqkinQomI0GKDqlDACIU3KeHoJqU/FIuLi4ZSsYTWDwM5ImtK UwZDsQR6BgaTCe5RxAkdG9a1KGtRd7PVUGjVmavcRZr/JCHxuvea+cdiJQKcGPeVEQYnzdgLTOMv Y/4C1kExXLonXfJuEuykHRhH2olzTBr2KtJFqC/pYtSY9G5CrCEtC9GT/VKe+wwOr5wZqBJiLLuQ z+dHprSiuW50Zp+Xz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GoR+/86fehb712LMonf7Bx/Y0kkl ik9HSM3+bSmF7iUp2D8f2Y1cA6qaMErJQfuHlOhF4s/+cAvPFHK3+DVrCevEC5VurmRLPJROYy3p k1Q2qXT2UV0+k3rZly+6nhKKjsKFUuIPUEsBAj8DFAMAAAgAqGFRQz1HQWz7CwAAvB0AAAUAAAAA AAAAAAAggO2BAAAAAGEub3V0UEsFBgAAAAABAAEAMwAAAB4MAAAAAA== Steps to reproduce:
$ r2 ./a.out [0x08048450]> pxo 123456789 zsh: segmentation fault r2 ./a.out $ — Reply to this email directly or view it on GitHub.
Latest git: 5ff25ef Still segfaulting.