GithubHelp home page GithubHelp logo

cs2d's People

Contributors

gkbrk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cs2d's Issues

Can't compile it

I tried to compile it myself but an error appear, actually there was more errors but I added -std=c99 to flags. I'm not good at programming C ๐Ÿ˜ž

libcs2d.c: In function 'cs2d_request_ips': libcs2d.c:27:5: warning: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration] bcopy(usgn->h_addr, &(server.sin_addr.s_addr), 4); ^ libcs2d.c:27:15: error: 'struct hostent' has no member named 'h_addr' bcopy(usgn->h_addr, &(server.sin_addr.s_addr), 4); ^ Makefile:2: recipe for target 'compile' failed make: *** [compile] Error 1

Heap overflow in response

        int map_len = response[loc];
        loc++;
        strncpy(sv->mapName, &response[loc], map_len);
        sv->mapName[map_len] = '\0';

The strncpy of the sv->name is also vulnerable. You should be sizing against your destination, not with untrusted data from the wire.

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.