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

Fix DeleteComment slice bounds out of range #1343

Merged
merged 1 commit into from
Sep 10, 2022
Merged

Conversation

dafengge0913
Copy link
Contributor

Description

Modify slice length while range will cause "slice bounds out of range" error.

How Has This Been Tested

Test by TestDeleteComment function in comment_test.go

@codecov-commenter
Copy link

codecov-commenter commented Sep 10, 2022

Codecov Report

Merging #1343 (bfd8c89) into master (fb1aab7) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #1343   +/-   ##
=======================================
  Coverage   98.45%   98.45%           
=======================================
  Files          31       31           
  Lines       23487    23490    +3     
=======================================
+ Hits        23123    23126    +3     
  Misses        242      242           
  Partials      122      122           
Flag Coverage Δ
unittests 98.45% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
comment.go 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@xuri xuri added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Sep 10, 2022
Copy link
Member

@xuri xuri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for your contribution. Since that Excel doesn't allow inserting multiple comments in one cell, I think we also need to add checking for this when adding comments.

@xuri xuri merged commit c72fb74 into qax-os:master Sep 10, 2022
xuri pushed a commit to carbin-gun/excelize that referenced this pull request Oct 9, 2022
xuri pushed a commit to JDavidVR/excelize that referenced this pull request Jul 11, 2023
jenbonzhang pushed a commit to jenbonzhang/excelize that referenced this pull request Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants