Giter Site home page Giter Site logo

jda-nas's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jda-nas's Issues

jcenter deprecation

Hello.
I would like to ask if jda-nas will get moved to a new artifactory since jcenter is going down soon.

Project dead?

Does this even work anymore? I tried this on my bot and the bot doesn't play any audio after joining the voice channel.

Possible memory leak in udp-queue-natives

With gcc-11 -fanalyzer (GCC 11 Static analysis)

jda-nas/udp-queue-natives/udpqueue/udpqueue.c:236:16: warning: leak ofbytes’ [CWE-401] [-Wanalyzer-malloc-leak]
  236 |         return result;
      |                ^~~~~~
  ‘manager_queue_packet’: events 1-6
    |
    |  218 | static bool manager_queue_packet(queue_manager_t* manager, uint64_t key, const char* address, int32_t port, void* data,
    |      |             ^~~~~~~~~~~~~~~~~~~~
    |      |             |
    |      |             (1) entry tomanager_queue_packet’
    |......
    |  221 |         uint8_t* bytes = malloc(data_length);
    |      |                          ~~~~~~~~~~~~~~~~~~~
    |      |                          |
    |      |                          (2) allocated here
    |  222 |         if (bytes == NULL) {
    |      |            ~ 
    |      |            |
    |      |            (3) assumingbytesis non-NULL
    |      |            (4) following ‘false’ branch (whenbytesis non-NULL)...
    |......
    |  226 |         memcpy(bytes, data, data_length);
    |      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    |      |         |
    |      |         (5) ...to here
    |......
    |  229 |         bool result = manager_queue_packet_locked(manager, key, address, port, bytes, data_length, explicit_socket);
    |      |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    |      |                       |
    |      |                       (6) callingmanager_queue_packet_lockedfrommanager_queue_packet’
    |
    +-->manager_queue_packet_locked’: events 7-9
           |
           |  178 | static bool manager_queue_packet_locked(queue_manager_t* manager, uint64_t key, const char* address, int32_t port,
           |      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
           |      |             |
           |      |             (7) entry tomanager_queue_packet_locked’
           |......
           |  187 |         else if (!existed) {
           |      |                 ~
           |      |                 |
           |      |                 (8) following ‘false’ branch...
           |......
           |  207 |         if (queue->buffer_size >= queue->buffer_capacity) {
           |      |             ~~~~~~~~~~~~~~~~~~
           |      |                  |
           |      |                  (9) ...to here
           |
    <------+
    |
  ‘manager_queue_packet’: events 10-13
    |
    |  229 |         bool result = manager_queue_packet_locked(manager, key, address, port, bytes, data_length, explicit_socket);
    |      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    |      |                       |
    |      |                       (10) returning tomanager_queue_packetfrommanager_queue_packet_locked’
    |......
    |  232 |         if (!result) {
    |      |            ~           
    |      |            |
    |      |            (11) following ‘false’ branch...
    |......
    |  236 |         return result;
    |      |                ~~~~~~  
    |      |                |
    |      |                (12) ...to here
    |      |                (13) ‘bytesleaks here; was allocated at (2)
    |

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.