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

dnsimple / dns_erlang
88%

Build:
DEFAULT BRANCH: main
Repo Added 11 Mar 2025 07:32AM UTC
Token 72qZZkJyJVy2Od1Yh0lQQ62DENnvMSpMr regen
Build 294 Last
Files 12
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

LAST BUILD ON BRANCH main
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • 4.4.0
  • add_bin_int_conversions
  • bugfix/detect-truncated-message
  • bugfix/empty_strings
  • bugfix/escape-backslashes-too
  • chore/agents
  • chore/dnssec_refactors_and_cleanups
  • chore/generate_json_docs
  • chore/minimum_perf_improvement_for_common_case
  • chore/split_zonefile_parser
  • chores
  • ci
  • cleanup_chores
  • cleanups
  • clear_priv
  • common_tests
  • dependabot/github_actions/actions/cache-5
  • dependabot/github_actions/actions/cache-6.1.0
  • dependabot/github_actions/actions/checkout-5
  • dependabot/github_actions/actions/checkout-6
  • dependabot/github_actions/actions/checkout-7
  • dependabot/github_actions/peter-evans/create-pull-request-8
  • dependencies
  • dnssec
  • dnssec_updates
  • doc_updates
  • docs/rfc-versions
  • documentation
  • edns0_truncated_record
  • feat/domain_names
  • feat/ed25519_ed448
  • feat/json
  • feat/more_record_types
  • feat/new_svcb_params
  • feat/strict_query_decoding
  • feat/svcb_https
  • feat/zonefiles
  • fix/decode-malformed-cookie-formerr
  • fix/json_and_svc_params
  • fix/optrr-size
  • fix/strict_ip_parsing
  • fix/svcb_null
  • fix/truncate_question
  • fix/zonefile_parser
  • fix_edns0_truncate_questions
  • fix_get_max_size
  • fix_truncated_optrr_records
  • general_care
  • generic_cleanups
  • linter
  • main
  • minor_optimisations
  • module_documentation
  • nxname
  • perf/append_optimisations
  • perf/optimise_to_lower
  • perf/to_lower-to_upper
  • refactoring
  • release
  • release-4.3
  • rfc8914-ede
  • rfc_7873_support_cookies
  • string_manipulations
  • strong_typing
  • support-ecdsa
  • test_long_txt_sections
  • tlsa
  • tmp/encode_zonefile
  • type_info
  • updates
  • upgrade_plugins
  • zone_parser_improvements

30 Jun 2026 04:38PM UTC coverage: 88.333% (+0.04%) from 88.294%
28460472875

push

github

web-flow
Surface malformed EDNS COOKIE as FORMERR instead of crashing (#129)

A COOKIE option (RFC 7873) with an invalid length raises `bad_cookie` in
`do_decode_optrrdata/2`. That call sat in the `of` body of the per-record
`try ... of ... catch` in `do_decode_message_additional/4`, where exceptions
are not caught, so it escaped `dns_decode`'s own error handling and propagated
to the caller's decode loop as an uncaught crash.

Move the record parse (the `from_wire/2` decode plus the rdata decoders
`decode_optrrdata/1` and `decode_rrdata/4`) into the `try` protected
expression so any decode failure on untrusted wire data — a bad cookie, or a
bad compression pointer in an RR's rdata — surfaces as a `{formerr, _, _}`
decode-error tuple. The recursion stays in the `of` body to remain in tail
position. The same shape is applied to `do_decode_message_body/4`.

Encoding an invalid cookie remains a hard error: building such a message is a
programming error on our side.

11 of 11 new or added lines in 1 file covered. (100.0%)

2756 of 3120 relevant lines covered (88.33%)

10988.21 hits per line

Relevant lines Covered
Build:
Build:
3120 RELEVANT LINES 2756 COVERED LINES
10988.21 HITS PER LINE
Source Files on main
  • Tree
  • List 12
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
28460472875 main Surface malformed EDNS COOKIE as FORMERR instead of crashing (#129) A COOKIE option (RFC 7873) with an invalid length raises `bad_cookie` in `do_decode_optrrdata/2`. That call sat in the `of` body of the per-record `try ... of ... catch` in `do_d... push 30 Jun 2026 04:39PM UTC web-flow github
88.33
28460367543 fix/decode-malformed-cookie-formerr Merge 648d8f4c7 into f6deedf9c Pull #129 30 Jun 2026 04:37PM UTC web-flow github
88.33
28458044674 main Bump actions/cache from 5 to 6.1.0 (#128) Bumps [actions/cache](https://github.com/actions/cache) from 5 to 6.1.0. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) ... push 30 Jun 2026 04:00PM UTC web-flow github
88.29
28283535400 dependabot/github_actions/actions/cache-6.1.0 Merge 37337ebff into 1fb6d4209 Pull #128 27 Jun 2026 08:13AM UTC web-flow github
88.29
27865286402 dependabot/github_actions/actions/checkout-7 Merge ece33aa77 into 1fb6d4209 Pull #127 20 Jun 2026 08:13AM UTC web-flow github
88.36
27369744292 main Update CI and runtimes (#126) * Update CI and runtimes * Tweak elvis push 11 Jun 2026 06:48PM UTC web-flow github
88.29
27369453828 updates Merge c64b074b0 into cb2c3e651 Pull #126 11 Jun 2026 06:43PM UTC web-flow github
88.29
24342928280 main fix(zone): robust BIND-style parsing, PDNS fixtures, and stricter RDATA validation (#125) * Enforce min code coverage to 85% * Include a bunch of zonefiles from PDNS test suite * Add tests for the files added in the previous commit * Add ALIAS... push 13 Apr 2026 12:21PM UTC web-flow github
88.29
24342761731 zone_parser_improvements Merge b26c3297e into e7afcfdf7 Pull #125 13 Apr 2026 12:17PM UTC web-flow github
88.29
24245538394 zone_parser_improvements Merge bcded1033 into e7afcfdf7 Pull #125 10 Apr 2026 01:36PM UTC web-flow github
88.3
See All Builds (293)

Badge your Repo: dns_erlang

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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