Skip to content

Fix panic from incorrect alignment length calculation#55

Merged
unknwon merged 1 commit into
go-ini:masterfrom
ryaka:fix-PrettyFormat-OoB
Jun 27, 2016
Merged

Fix panic from incorrect alignment length calculation#55
unknwon merged 1 commit into
go-ini:masterfrom
ryaka:fix-PrettyFormat-OoB

Conversation

@ryaka

@ryaka ryaka commented Jun 25, 2016

Copy link
Copy Markdown
Contributor

The alignment length calculation did not take into account that
keys may be added to if they contained """, "=", ":", or "`".

This gave an under calculation and resulted in index out of
bounds when this happened to be the longest key.

Please feel free to give any feedback or issues with the following request

The alignment length calculation did not take into account that
keys may be added to if they contained "\"", "=", ":", or "`".

This gave an under calculation and resulted in index out of
bounds when this happened to be the longest key.
@unknwon

unknwon commented Jun 27, 2016

Copy link
Copy Markdown
Member

Thanks!

@unknwon unknwon merged commit 128f6e4 into go-ini:master Jun 27, 2016
unknwon added a commit that referenced this pull request Jun 27, 2016
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 this pull request may close these issues.

2 participants