Safe arrays and pointers in c

  • Unique Paper ID: 142911
  • Volume: 2
  • Issue: 7
  • PageNo: 204-206
  • Abstract:
  • Buffer overflows continue to plague C and C++ programs. This is a draft proposal for dealing with that problem. The basis of this proposal is to define means for expressing the size of arrays in C. C already has fixed-size arrays with useful semantics. In this proposal, the existing syntax for fixed-length arrays is generalized to allow known-length arrays, where the length of the array is determined at variable initialization time. With relatively minor and compatible changes to C, the most troublesome causes of program crashes and security vulnerabilities can be dealt with. In any useful program, each array has a size known to the programmer. In C, there is currently no way to consistently express that size in the language. This proposal adds that capability.
add_icon3email to a friend

Copyright & License

Copyright © 2025 Authors retain the copyright of this article. This article is an open access article distributed under the Creative Commons Attribution License which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

BibTeX

@article{142911,
        author = {Rahul kumar},
        title = {Safe arrays and pointers in c},
        journal = {International Journal of Innovative Research in Technology},
        year = {},
        volume = {2},
        number = {7},
        pages = {204-206},
        issn = {2349-6002},
        url = {https://ijirt.org/article?manuscript=142911},
        abstract = {Buffer overflows continue to plague C and C++
programs. This is a draft proposal for dealing with
that problem. The basis of this proposal is to define
means for expressing the size of arrays in C. C
already has fixed-size arrays with useful semantics.
In this proposal, the existing syntax for fixed-length
arrays is generalized to allow known-length arrays,
where the length of the array is determined at
variable initialization time. With relatively minor
and compatible changes to C, the most troublesome
causes of program crashes and security
vulnerabilities can be dealt with. In any useful
program, each array has a size known to the
programmer. In C, there is currently no way to
consistently express that size in the language. This
proposal adds that capability.},
        keywords = {c and c++},
        month = {},
        }

Cite This Article

  • ISSN: 2349-6002
  • Volume: 2
  • Issue: 7
  • PageNo: 204-206

Safe arrays and pointers in c

Related Articles