• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zhaozg / lua-openssl / 19230819827
94%

Build:
DEFAULT BRANCH: master
Ran 10 Nov 2025 12:01PM UTC
Jobs 1
Files 45
Run time 54min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Nov 2025 11:58AM UTC coverage: 93.551% (+0.001%) from 93.55%
19230819827

push

travis-ci

web-flow
Fix memory leaks in digest and HMAC error paths (#369)

* Fix memory leaks in error paths and add error handling documentation

- Fixed memory leak in digest.c: EVP_MD_CTX not freed in openssl_signInit and openssl_verifyInit error paths
- Fixed memory leak in hmac.c: HMAC_CTX not freed in error path
- Added comprehensive error handling documentation (English and Chinese)
- Documented the error handling pattern: use openssl_pushresult for runtime errors, luaL_error for exceptional cases

Co-authored-by: zhaozg <542599+zhaozg@users.noreply.github.com>

* Add error handling tests and verify zero memory leaks with ASAN

- Added 11 new error handling tests in test/9.error_handling.lua
- Tests verify proper error return patterns
- Tests verify resource cleanup on error paths
- Verified with AddressSanitizer: zero memory leaks detected
- All 188 tests pass successfully

Co-authored-by: zhaozg <542599+zhaozg@users.noreply.github.com>

* Add security summary for error handling optimization work

- Created SECURITY_SUMMARY.md documenting all findings and fixes
- All security checks passed: AddressSanitizer (0 leaks), CodeQL (0 alerts)
- 3 memory leaks fixed in digest.c and hmac.c
- 188 tests passing (177 existing + 11 new)
- Comprehensive documentation added for contributors

Co-authored-by: zhaozg <542599+zhaozg@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: zhaozg <542599+zhaozg@users.noreply.github.com>

0 of 2 new or added lines in 1 file covered. (0.0%)

2 existing lines in 1 file now uncovered.

10242 of 10948 relevant lines covered (93.55%)

2016.57 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
94.25
-0.84% src/digest.c

Uncovered Existing Lines

Lines Coverage ∆ File
2
94.25
-0.84% src/digest.c
Jobs
ID Job ID Ran Files Coverage
1 19230819827.1 10 Nov 2025 04:45PM UTC 45
93.55
Travis Job
Source Files on build 19230819827
  • Tree
  • List 45
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 22892fc8 on github
  • Prev Build on master (#19222673154)
  • Next Build on master (#19235405971)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc