Skip to content

Safeclib - Memory-safe C library providing secure string/memory operations with bounds checking, overflow prevention, and modular design. Available as static/shared libraries.

License

Notifications You must be signed in to change notification settings

xidruk/safeclib

Repository files navigation

SafeClib - Secure Bounds-Checked C Library

License Memory Safety

A security-focused C library providing bounds-checked implementations of common memory/string operations to prevent buffer overflows and undefined behavior.

Memory Safety Concept

Features

  • Memory Safety: All operations validate buffer sizes
  • Error Handling: Consistent error return values
  • Wide Character Support: Safe wide string operations
  • Modular Design:
    • Concatenation Tools: Safe memory/string concatenation
    • Duplication Tools: Secure data copying with transformation
    • Copy Tools: Memory/string copy operations with bounds checking
    • Matching Tools: Advanced search/comparison functions
    • Size Utilities: Safe string length calculations

Installation

Dependencies

  • C compiler (GCC/clang)
  • Make
  • Standard C library

Build & Install

# Clone repository
git clone https://github.com/yourusername/safeclib.git
cd safeclib

# Build libraries and main executable
make

About

Safeclib - Memory-safe C library providing secure string/memory operations with bounds checking, overflow prevention, and modular design. Available as static/shared libraries.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published