GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||
GeezerVison is showing github.com — fileutils likely overrunning write · Issue #134351 · python/cpython Closed as duplicate Labels interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement DescriptionFeature or enhancementProposal:Line 2132 in f695eca
The program performs a buffer copy or write operation with no upper limit on the size of the copy. By analyzing the bounds of the expressions involved, it appears that certain inputs will cause a buffer overflow to occur in this case. In addition to causing program instability, techniques exist which may allow an attacker to use this vulnerability to execute arbitrary code. RecommendationAlways control the length of buffer copy and buffer write operations. int sayHello(uint32_t userId) { char buffer[17]; if (userId > 9999) return USER_ID_OUT_OF_BOUNDS; // BAD: this message overflows the buffer if userId >= 1000, // as no space for the null terminator was accounted for sprintf(buffer, "Hello, user %d!", userId); MessageBox(hWnd, buffer, "New Message", MB_OK); return SUCCESS; } the call to ReferencesCERT C Coding Standard: STR31-C. Guarantee that storage for strings has sufficient space for character data and the null terminator Has this already been discussed elsewhere?No response given Links to previous discussion of this feature:No response Activity
MetadataMetadataAssigneesLabelsinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement ProjectsMilestoneRelationshipsDevelopmentIssue actions | ||
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |