Git Product home page Git Product logo

libcpath's Introduction

libcpath's People

Contributors

dmitry-zakablukov avatar joachimmetz avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

libcpath's Issues

Improve tests

  • add test for API functions
  • add test for API types
  • improve test coverage - WIP

error: 'PATH_MAX' undeclared

From https://buildd.debian.org/status/package.php?p=libbfio

Tail of log for libbfio on hurd-i386:
gcc: note: pie specs /usr/share/dpkg/pie-compile.specs ignored when pie is not enabled
libcpath_path.c: In function 'libcpath_path_get_current_working_directory':
libcpath_path.c:487:45: error: 'PATH_MAX' undeclared (first use in this function)
  *current_working_directory_size = (size_t) PATH_MAX;
                                             ^~~~~~~~
libcpath_path.c:487:45: note: each undeclared identifier is reported only once for each function it appears in
Makefile:539: recipe for target 'libcpath_path.lo' failed
make[2]: *** [libcpath_path.lo] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/libcpath'
Makefile:640: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: make -j1 returned exit code 2
debian/rules:16: recipe for target 'build-arch' failed
make: *** [build-arch] Error 2

libcpath_path.c: using NULL pointer

It's current_directory. For example, line 1002 checks "if( ( current_directory != NULL )". So... it looks like it can be NULL. But above this code you'll find many uses of current_directory.

Same with line 3993 and above.

implement sanitize functions

implement:

  • libcpath_path_get_sanitized_filename
  • libcpath_path_get_sanitized_filename_wide
  • libcpath_path_get_sanitized_path
  • libcpath_path_get_sanitized_path_wide
  • removed old functions

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.