-
Notifications
You must be signed in to change notification settings - Fork 335
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
(272) Added the wide string entry message functions #376
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## latest #376 +/- ##
==========================================
+ Coverage 91.69% 92.02% +0.33%
==========================================
Files 44 44
Lines 3743 3761 +18
Branches 489 491 +2
==========================================
+ Hits 3432 3461 +29
+ Misses 216 202 -14
- Partials 95 98 +3 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for putting this together! A few minor comments below, mostly around these two points:
The malloc failure test isn't working properly, likely because the failure size is incorrect. Don't forget that wide characters take up more than one byte! EDIT: actually, the errors thrown in failing cases are invalid encoding, the cause of which I'm not sure offhand - you'll have to investigate further.
The test corpora are currently UTF-8 strings. You'll need to make UTF-16 versions of these in a new folder, test/corpora/wstring
, and change your commented out tests to use these (and of course uncomment them so that they run).
include/stumpless/entry.h
Outdated
* cancelled, due to the use of a lock that could be left locked as well as | ||
* memory management functions. | ||
* | ||
* @since release v2.1.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change this to the next release, v2.2.0
You'll also need to add your new function to |
I changed the stumpless def file, there were some additional text which gave the error. I am not entirely sure about the valgrind test errors. |
The valgrind errors are happening because there is a memory leak in the tests. Be sure that you free the result of |
I will look into it again, the tests and build did pass locally. |
Hello, When I try to run Valgrind tests, it does not run and says a file is corrupted as it did in the previous issue. Last time I i solved that by cloning the repo again and making the changes in the new repo as valgrind ran without any problems in the new one. Now, In the current repo I face the same issue and valgrind does not run. Therefore I tried to reclone the repo again into a separate folder and pasted the changes there. It passes the tests initially and everything runs fine but if I try to make any changes (even if it is commenting ) and re run the checks it says
The entry message is mentioned in the yml file but even then it says this. whereas the current repo's valgrind says this
|
It will be some time before I can get to troubleshooting this myself, as there are a few other pieces of the library that I'm spending time on right now. The errors you mentioned above seem like you may need to re-build the test after changing source, try building the |
|
Yes, that's likely where the memory leak is coming from. |
I did that but valgrind still says the same |
Is there anything else I need to look at? |
If you feel that you've exhausted what you're able to resolve, you can push your current state and I'll go through and resolve the remaining errors. Unfortunately, I don't have the time to go through and create another review detailing the issues since doing a local checkout, troubleshooting, and writeup is quite time consuming. If you do find that you need me to complete this change, I'll start with your current state and open a new PR with everything resolved. You'll have the opportunity to provide a final review of that before it's merged. Note that this will result in you being a co-author (with me as the other) of the final commit instead of the sole author. If this is important to you, you have lots of time to keep working through this. I certainly don't want you to feel like I've stolen credit for your hard work, so I won't move forward with that course of action unless you let me know that's how you want to proceed, this goes stale as defined in the inactivity policy, or we approach the next release deadline, which will probably be in December of this year. |
I understand and thank you for sharing that. I will work on this and try to come up with a solution. I can not think of any reason for the I honestly don't mind being a co author but I would love to still solve this. |
Incorporated into #412 |
Added the wide string entry message functions. Changed
entry.c, entry.h, entry.cpp and yml
files