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

Keys with colons causes crash #115

Open
bkeroackdsc opened this issue Dec 15, 2016 · 0 comments
Open

Keys with colons causes crash #115

bkeroackdsc opened this issue Dec 15, 2016 · 0 comments

Comments

@bkeroackdsc
Copy link

Version 0.5

Example:

gof3r put -b "mybucket" -k "ThuDec1519:13:41UTC2016.tar" < "/tmp/file.tar"
panic: runtime error: slice bounds out of range

goroutine 1 [running]:
github.com/rlmcpherson/s3gof3r.(*signer).buildCanonicalString(0xc8200452d8)
	/Users/rm/src/github.com/rlmcpherson/s3gof3r/sign.go:120 +0x4fb
github.com/rlmcpherson/s3gof3r.(*signer).sign(0xc8200452d8)
	/Users/rm/src/github.com/rlmcpherson/s3gof3r/sign.go:66 +0x63
github.com/rlmcpherson/s3gof3r.(*Bucket).Sign(0xc82000e980, 0xc8200d6000)
	/Users/rm/src/github.com/rlmcpherson/s3gof3r/sign.go:59 +0x1e5
github.com/rlmcpherson/s3gof3r.(*putter).retryRequest(0xc820001080, 0x7fca00, 0x4, 0xc82000e9c0, 0x1e, 0x0, 0x0, 0xc820011d40, 0x0, 0x0, ...)
	/Users/rm/src/github.com/rlmcpherson/s3gof3r/putter.go:382 +0x37e
github.com/rlmcpherson/s3gof3r.newPutter(0x7fe8d8, 0x5, 0x7fffc140f6f0, 0x10, 0x0, 0xc820011dd0, 0x30, 0xc820013f70, 0x1, 0x0, ...)
	/Users/rm/src/github.com/rlmcpherson/s3gof3r/putter.go:88 +0x349
github.com/rlmcpherson/s3gof3r.(*Bucket).PutWriter(0xc8200459e0, 0x7fffc140f6e5, 0x1b, 0xc820011d40, 0xc820045a90, 0x0, 0x0, 0x0, 0x0)
	/Users/rm/src/github.com/rlmcpherson/s3gof3r/s3gof3r.go:135 +0x126
main.(*putOpts).Execute(0x9d5a00, 0xc82008ea20, 0x0, 0x9, 0x7f81b8ff8590, 0xc820011da0)
	/Users/rm/src/github.com/rlmcpherson/s3gof3r/gof3r/put.go:53 +0x65f
github.com/jessevdk/go-flags.(*Parser).ParseArgs(0xc8200784b0, 0xc82000a0b0, 0x9, 0x9, 0x0, 0x0, 0x0, 0x0, 0x0)
	/Users/rm/src/github.com/jessevdk/go-flags/parser.go:301 +0xa16
github.com/jessevdk/go-flags.(*Parser).Parse(0xc8200784b0, 0x0, 0x0, 0x0, 0x0, 0x0)
	/Users/rm/src/github.com/jessevdk/go-flags/parser.go:175 +0x9b
main.main()
	/Users/rm/src/github.com/rlmcpherson/s3gof3r/gof3r/main.go:61 +0x191
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

No branches or pull requests

1 participant