Misplaced Pages

Talk:Bounds checking

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.

This is an old revision of this page, as edited by AliveFreeHappy (talk | contribs) at 15:57, 6 January 2017 (formatting). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Revision as of 15:57, 6 January 2017 by AliveFreeHappy (talk | contribs) (formatting)(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
WikiProject iconComputing: Software / Security Start‑class Low‑importance
WikiProject iconThis article is within the scope of WikiProject Computing, a collaborative effort to improve the coverage of computers, computing, and information technology on Misplaced Pages. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.ComputingWikipedia:WikiProject ComputingTemplate:WikiProject ComputingComputing
StartThis article has been rated as Start-class on Misplaced Pages's content assessment scale.
LowThis article has been rated as Low-importance on the project's importance scale.
Taskforce icon
This article is supported by WikiProject Software (assessed as Mid-importance).
Taskforce icon
This article is supported by WikiProject Computer Security (assessed as Mid-importance).
Things you can help WikiProject Computer Security with:
Article alerts will be generated shortly by AAlertBot. Please allow some days for processing. More information...
  • Review importance and quality of existing articles
  • Identify categories related to Computer Security
  • Tag related articles
  • Identify articles for creation (see also: Article requests)
  • Identify articles for improvement
  • Create the Project Navigation Box including lists of adopted articles, requested articles, reviewed articles, etc.
  • Find editors who have shown interest in this subject and ask them to take a look here.

Impact

It'd be good if it was discussed what could happen without bounds checking and why this may be dangerous. --Abdull 10:35, 5 November 2005 (UTC)

Different usages

The article on bounds checking treats the subject as being the same as index checking, but this is not so. Index checking is a subset of bounds checking in that a variable used for indexing an array is checked for having values within the bounds of the array it is being used to index, and different arrays might well have different bounds even though the same variable is used to index them. However, bounds checking is more general and more closely associated with the variable, whereby a value about to be assigned to a variable would be checked for being within the allowed bounds for that variable. A simple situation would be an expression calculated as a 32-bit integer to be stored into a 16-bit variable. Some languages allow a variable to be declared with a specified allowable range (say -3 to 76, or 2.71828 to 3.14159 perhaps, though probably not with more complex ranges) so it is not just a matter of word sizes and suchlike.

"Many programming languages, such as C, never perform automatic bounds checking to raise speed"

This is the STUPIDEST thing I heard today. I know of at least 2 popular implementations (GCC and clang with the *sanitiser) that allow bounds checking under certain compiler option and at least one that does it automatically. — Preceding unsigned comment added by 178.128.114.180 (talk) 15:46, 20 March 2016 (UTC)

External links modified

Hello fellow Wikipedians,

I have just modified one external link on Bounds checking. Please take a moment to review my edit. If you have any questions, or need the bot to ignore the links, or the page altogether, please visit this simple FaQ for additional information. I made the following changes:

When you have finished reviewing my changes, please set the checked parameter below to true or failed to let others know (documentation at {{Sourcecheck}}).

This message was posted before February 2018. After February 2018, "External links modified" talk page sections are no longer generated or monitored by InternetArchiveBot. No special action is required regarding these talk page notices, other than regular verification using the archive tool instructions below. Editors have permission to delete these "External links modified" talk page sections if they want to de-clutter talk pages, but see the RfC before doing mass systematic removals. This message is updated dynamically through the template {{source check}} (last update: 5 June 2024).

  • If you have discovered URLs which were erroneously considered dead by the bot, you can report them with this tool.
  • If you found an error with any archives or the URLs themselves, you can fix them with this tool.

Cheers.—InternetArchiveBot (Report bug) 16:27, 6 November 2016 (UTC)

Categories: