Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • BIND BIND
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 574
    • Issues 574
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 115
    • Merge requests 115
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ISC Open Source ProjectsISC Open Source Projects
  • BINDBIND
  • Issues
  • #402
Closed
Open
Issue created Jul 10, 2018 by Ghost User@ghost

Memory Leak found in file 'fuzz.c' in BIND-9.12.1-P2

Summary

In reviewing source code in BIND-9.12.1-P2, in directory '/bin/named', file 'fuzz.c', in function 'static void *fuzz_thread_resolver', it would appear that variable 'rbuf' is never freed prior to the function returning cleanly (i.e. - buf is released by free, but rbuf is not).

Steps to reproduce

N/A

What is the current bug behavior?

With current code, a memory leak develops over time in file 'fuzz.c'

What is the expected correct behavior?

the memory allocated for rbuf should be released before the function returns.

Relevant configuration files

N/A

Relevant logs and/or screenshots

N/A

Possible fixes

Patch file is attached to this bug report and is listed below:

--- fuzz.c.orig 2018-07-09 20:32:05.765895918 -0700 +++ fuzz.c 2018-07-09 20:33:48.868144488 -0700 @@ -574,6 +574,7 @@ }

    free(buf);
  •   free(rbuf);
      close(sockfd);
      close(listenfd);
      named_server_flushonshutdown(named_g_server, ISC_FALSE);

fuzz.c.patch

Edited Jul 10, 2018 by Ghost User
Assignee
Assign to
Time tracking