Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8384983
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:33:06+00:00 2026-06-09T17:33:06+00:00

Going through Elisabeth Hendrickson’s test heuristics cheatsheet , I see the following recommendations :

  • 0

Going through Elisabeth Hendrickson’s test heuristics cheatsheet , I see the following recommendations :

Numbers : 32768 (2^15) 32769 (2^15+ 1) 65536 (2^16) 65537 (2^16 +1) 2147483648 (2^31) 2147483649 (2^31+ 1) 4294967296 (2^32) 4294967297 (2^32+ 1)

Does someone know the reason for testing all theses cases ? My gut feeling goes with the data type the developer may have used ( integer, long, double…)

Similarly, with Strings :

Long (255, 256, 257, 1000, 1024, 2000, 2048 or more characters)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T17:33:08+00:00Added an answer on June 9, 2026 at 5:33 pm

    These represent boundaries

    Integers

    • 2^15 is at the bounds of signed 16-bit integers
    • 2^16 is at the bounds of unsigned 16-bit integers
    • 2^31 is at the bounds of signed 32-bit integers
    • 2^32 is at the bounds of unsigned 32-bit integers

    Testing for values close to common boundaries tests whether overflow is correctly handled (either arithmetic overflow in the case of various integer types, or buffer overflow in the case of long strings that might potentially overflow a buffer).

    Strings

    • 255/256 is at the bounds of numbers that can be represented in 8 bits
    • 1024 is at the bounds of numbers that can be represented in 10 bits
    • 2048 is at the bounds of numbers that can be represented in 11 bits

    I suspect that the recommendations such as 255, 256, 1000, 1024, 2000, 2048 are based on experience/observation that some developers may allocate a fixed-size buffer that they feel is “big enough no matter what” and fail to check input. That attitude leads to buffer overflow attacks.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While Going through the java tutorial on sun site, I see following piece of
Going through Javascript documentation, I found the following two functions on a Javascript object
While going through Effective C++ (by Scott Meyers), I came across the following code
While going through a WP7.5 background transfer service policy, one can read the following:
While going through a Zend tutorial , I came across the following statement: Note
Going through K&R I saw the following code snippet of a function, strcopy, which
While going through SQL profiler, I noticed the following query generated by EF4. exec
While going through university and from following the development of SO, I've heard a
Going through the WebView demo , I noticed the following statement: mWebView.loadUrl(javascript:wave()); It works,
Going through EASTL, I stumbled across a peculiar line of code. The following link

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.