Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fuzz: hang/infinite loop in tiff.DecodeDir #8

Closed
csmith opened this issue Mar 3, 2020 · 0 comments · Fixed by #9
Closed

Fuzz: hang/infinite loop in tiff.DecodeDir #8

csmith opened this issue Mar 3, 2020 · 0 comments · Fixed by #9

Comments

@csmith
Copy link
Member

csmith commented Mar 3, 2020

Output:

program hanged (timeout 30 seconds)

SIGABRT: abort
PC=0x45f191 m=0 sigcode=0

goroutine 0 [idle]:
runtime.futex(0x64d648, 0x80, 0x0, 0x0, 0x0, 0xc000026000, 0xc000068000, 0x33c3b263afa4, 0x7ffd10192e28, 0x40a1df, ...)
	runtime/sys_linux_amd64.s:567 +0x21
runtime.futexsleep(0x64d648, 0x0, 0xffffffffffffffff)
	runtime/os_linux.go:44 +0x46
runtime.notesleep(0x64d648)
	runtime/lock_futex.go:151 +0x9f
runtime.stopm()
	runtime/proc.go:1828 +0xc0
runtime.findrunnable(0xc000026000, 0x0)
	runtime/proc.go:2360 +0xa0d
runtime.schedule()
	runtime/proc.go:2520 +0x2fc
runtime.park_m(0xc000000c00)
	runtime/proc.go:2690 +0x9d
runtime.mcall(0x0)
	runtime/asm_amd64.s:318 +0x5b

goroutine 1 [runnable]:
github.com/simpicapp/goexif/tiff.DecodeDir(0x57c180, 0xc000290000, 0x57d080, 0x676a80, 0x0, 0x0, 0x0, 0x0)
	/home/chris/Code/goexif/tiff/tiff.go:133 +0x354
github.com/simpicapp/goexif/tiff.Decode(0x57be80, 0xc00000c6a0, 0x2, 0x2, 0xc000093da8)
	/home/chris/Code/goexif/tiff/tiff.go:78 +0x4d8
github.com/simpicapp/goexif/exif.Decode(0x57bc80, 0xc000217f50, 0x2, 0x353, 0x645660)
	/home/chris/Code/goexif/exif/exif.go:279 +0x4f9
github.com/simpicapp/goexif/internal/fuzz.Fuzz(0x7f1ccd21b000, 0x3567, 0x3567, 0x3)
	/home/chris/Code/goexif/internal/fuzz/fuzz.go:22 +0x1b6
go-fuzz-dep.Main(0xc0227e0f70, 0x1, 0x1)
	go-fuzz-dep/main.go:36 +0x1ad
main.main()
	github.com/simpicapp/goexif/internal/fuzz/go.fuzz.main/main.go:15 +0x52

rax    0xca
rbx    0x64d500
rcx    0x45f193
rdx    0x0
rdi    0x64d648
rsi    0x80
rbp    0x7ffd10192df0
rsp    0x7ffd10192da8
r8     0x0
r9     0x0
r10    0x0
r11    0x286
r12    0x3
r13    0x64cfa0
r14    0x7f1ccd4bb000
r15    0x8
rip    0x45f191
rflags 0x286
cs     0x33
fs     0x0
gs     0x0
exit status 2
csmith added a commit to csmith/goexif that referenced this issue Mar 3, 2020
@kodiakhq kodiakhq bot closed this as completed in #9 Mar 3, 2020
csmith added a commit to csmith/goexif that referenced this issue Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant