- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Quiz For C Programmers.ppt
Quiz: For C Programmers Author: Jedidiah R. Crandall, crandaj@ This Document was Funded by the National Science Foundation Federal Cyber Service Scholarship For Service Program:Grant No. 0113627 Distributed July 2002 Embry-Riddle Aeronautical University ? Prescott, Arizona ? USA 1. If you declare an array as A[100] in C and you try to write data to A[555], what will happen? Nothing The C compiler will give you an error and won’t compile There will always be a runtime error Whatever is at A[555] will be overwritten 2. Which kinds of operations are most likely to lead to buffer overflows in C? Floating point addition Indexing of arrays Dereferencing a pointer Pointer arithmetic 3. Where can an attacker who is trying to “smash the stack” put their attack code if the buffer to be overflowed is on the stack? On the stack before the return pointer On the stack after the return pointer In the stack frame of another function On the heap In a global variable 4. What can be overwritten by a buffer overflow that causes a security problem. Security-sensitive data A return pointer Any kind of pointer Anything that will make the program crash 5. What is likely to happen if you find a buffer overflow during testing by entering a random, long string for a C program? The program gives you a “Buffer overflow at line X” error Data is corrupted The program crashes The C fairy sprinkles magic memory dust on the memory that was overwritten and makes everything okay again. 6. Which of these kinds of inputs can cause a buffer overflow. An environment variable String input from the user A single integer A floating point number File input 7. Which of these processes is likely to catch a buffer overflow? Compilation Code inspection Testing by a software developer Testing (or using) by a customer Testing (or probing) by an attacker 8. Which of these library functions are safe as long as you tell it the correct buffer size? sprintf() strcpy() fscanf() gets() memcpy() 9. Whic
您可能关注的文档
- LECTURE #12 MICROECONOMICSCHAPTER 14.ppt
- Lecture #14, Feb. 28, 2007.ppt
- Lecture #18 Class Discussion CP Group Case.ppt
- Lecture 13 Cache and Virtual Memroy Review.ppt
- Lecture 13 Chi-square and sample variance.ppt
- Lecture 13 Competition and Pricing.ppt
- Lecture 13 VHDL Structural Modeling.ppt
- Lecture 13. Dissipation of Gravity Waves.ppt
- Lecture 13.ppt
- Lecture 13Chapter 7 Deadlocks.ppt
- RADHAZ Material Outline.ppt
- Reaching the SMEsThe Philippine Approach.ppt
- Real Time Scheduling.ppt
- Reducing Stigma toward the Mentally Ill.ppt
- Referrals, Evaluations and Eligibility Determinations.ppt
- Renting13-CURSO DE DERECHO ECLESIÁSTICO EN PPT.ppt
- Renting13-Reading and Writing Skills for Students of Literature.ppt
- Report on Target Action Items.ppt
- restroom公共厕所.ppt
- RETAILING AND WHOLESALING.ppt
文档评论(0)