Compressibility

Total Page:16

File Type:pdf, Size:1020Kb

Compressibility Br J Sp Med 1991; 25(1) Br J Sports Med: first published as 10.1136/bjsm.25.1.34 on 1 March 1991. Downloaded from A formula for comparison of selected sport ball compressibility Linus J. Dowell MD and Gary Krebs Department of Health and Physical Education, Texas A&M University, Texas, USA The purpose of this study was to develop a formula to deformation occurs. The force that acts on an object determine and compare the compressibility of selected to distort it is called stress. The distortion that occurs sport balls. Six balls (basketball, volleyball, soccer ball, is called strain and is porportional to the stress baseball, handball, golf ball) were dropped ten times from causing it. Stress may take the form of compression each of four different heights onto a smooth solid surface as in the squeezing of a tennis ball. overlaid with a white sheet of typing paper, overlaid with a sheet of carbon paper. The diameter of the area of contact Piscopo and Baley2 stated that when an object of each ball imprinted onto the typing paper was strikes a contact surface, a certain amount of measured in millimetres with calipers. From the data, the depression or distortion takes place on the impacted distance (d) that each ball compressed for each velocity (v) surface, e.g. the depression or flattening of a tennis was calculated. It was found that a linear relationship ball as it contacts the strings of a racket. existed between velocity at impact and the distance for Northrip, Logan and McKinney3 stated: each ball studied. The compressibility coefficient (c) for each ball was calculated and a formula was developed to During a collision involving an elastic object such determine the distance each ball would compress at a as a tennis ball, the kinetic energy that a ball given velocity. When velocity is measured in metres per possesses before the collision is stored as elastic second and the distance a ball compresses is measured in potential energy in the deformation of the ball. The millimetres, the formula to determine d for selected balls, relationship between forces or energies in an elastic in order of compressibility is: basketball d = 3.07v, deformation and the actual distance of body volleyball d = 2.90v, soccer ball d = 2.80v, baseball d = deformation is called compressibility. An object 0.77v, handball d = 0.53v, and golf ball d = O.17v. with high compressibility shows very little 'give' in Keywords: Biomechanics, compressibility, balls, velocity, response to extremely large forces. It should be http://bjsm.bmj.com/ formula emphasized here that virtually all sport objects are to a certain extent compressible. Probably the least compressible object in sport is the billiard ball.... The compressibility of a ball affects many aspects of Because all objects during collision are compressed performance which is of interest to physical educa- somewhat and rebound to their original shape, tors. Compressibility to some extent affects how a ball there is a definite time associated with collision. A will rebound from a surface but more important than greater amount of compression results in a longer on September 30, 2021 by guest. Protected copyright. this is the force exerted on the surface. The greater time of contact. This contributes to a lower average the distance over which force is dissipated the less force used to impart a given change in momentum. the force of impact (Fd = ½/2mz2, where F = force, d = A greater or lesser time of collision may substantial- distance, m = mass and v = velocity). The ly affect a performer's action in striking something. compressibility of a ball is related to the distance Bunn4 stated that in a placed kick the football through which a ball compresses on contact with depresses by about one-third, while the tennis ball surface, i.e. the deformation of the ball. The greater that is hard driven may depress by about one-half; the deformation at a given velocity the greater the even the golf ball shows a surprising amount of compressibility. distortion on impact with the club head. Broer5 indicated that a ball that is dropped Historical background vertically has the entire bottom of the ball depressed, making the force of rebound the same from all parts Luttgens and Wells' indicated that when objects of the bottom of the ball and it bounces straight up; come in contact with each other some distortion or while a ball that approaches at an angle to the floor depresses the back of the bottom of the ball more than the front and the rebound force throws the ball Address for correspondence: Dr Linus J. Dowell, Department of forward and upward. Health and Physical Education, Texas A&M University, College of and stated: Education, College Station, Texas 77843-4243, USA Jensen Schultz6 (© 1991 Butterworth-Heinemann Ltd. A softball is harder to compress and has less 0306-3674/91/010034-04 elasticity than a tennis ball; therefore, a softball has 34 Br J Sp Med 1991; 25(1) A formula for comparison of selected sport ball compressibility: L. J. Dowell and G. Krebs less rebound ability. Both a handball and a golf ball it is important for physical educators to quantify the are more difficult to compress. If the two balls were compression of balls used in physical education. Br J Sports Med: first published as 10.1136/bjsm.25.1.34 on 1 March 1991. Downloaded from dropped from the same height (shoulder height) Because of the scarcity of the literature on the onto the same surface, the handball's rebound compression of balls used in physical education and would exceed that of the golf ball. The reason is the importance of understanding the physics of that the impact would be insufficient to produce impact in physical education this study determined enough compression of the golf ball to allow its the extent of depression taking place in selected balls elastic quality to function. When struck hard with a when velocity at impact was known. This is golf club, the golf ball compresses a considerable important since Fd = 1/2 mz'2. That is, the greater the amount, thus allowing the elastic quality to depression (d) of a ball the less the force (F) at impact function. As a result, the golf ball responds better when all other factors are equal. than a handball to the impact of the club. A basketball with insufficient air will compress easily Statement of the problem when bounced, but lack of air pressure within causes the ball to have little elasticity; therefore, its It was the purpose of this study to determine and rebound ability is poor. When properly inflated, compare the compressibility of selected balls. Speci- the ball is more difficult to compress, but it has fically, the purpose was to develop a formula to increased elasticity and thus rebounds farther. determine the compressibility of a baseball, basket- ball, golf ball, handball, soccer ball and volleyball Scott7 agrees that the baseball, hockey ball and golf contacting a hard surface at four selected velocities; ball are relatively firm yet the fast action camera and to use this formula to compare these balls. shows that the flattening of these balls are very pronounced when hit forcefull. Softer balls show greater amounts of compression. Method Hay and Reid8 suggest that because of the large Six balls (baseball, basketball, golf ball, handball, numbers of physical education and athletic activities soccer ball, and volleyball) were dropped from four that involve the impact of one body with another, it is different heights (0.6, 1.2, 1.8 and 2.4m; 2, 4, 6 and highly desirable that physical education teachers and 8 ft) onto a smooth solid surface. A piece of paper was coaches have a good understanding of the factors that placed on the surface at the contact point, overlaid govern the results of such impacts. with carbon paper. The diameter of the area Several researchers have studied the impact of imprinted was measured with calipers. Each ball was soccer balls and resulting injury. Schneider9, Smodla- dropped 10 times from each of the four heights for a ka 0, Tsvaer and Storlil , Verdaguer 2, Burke et al.13 total of 240 ball imprints. The volleyball did not make and Sandyk'4 reported that the potential harmful a dark enough imprint at the 0.6 m (2ft) level at consequence of head injuries occurs in soccer. Some 3.45 m/s velocity to distinguish diameter, so only of the authors reported retinal detachments due to three velocities were included for the volleyball. A the impact of soccer balls. Others reported eye mean diameter for each ball from each height was http://bjsm.bmj.com/ injuries as well as migraine headaches. Kross, Ohler, determined. The compression of each ball was and Barolin'5 studied electroencephalographic (EEG) determined for each height from the radius of the film of players heading a soccer ball and concluded imprint at impact. The compression of the ball, or that cerebral damage cannot be assumed in general distance compressed (d) was determined by the although predisposed persons may have micro- formula: trauma and subclinical cerebral caused dysfunction d = R- _ by heading. Tsyvaer'6 described a case of a cervical R2 r2 disc herniation occurring in a soccer player who where R is the radius of the ball and r is the radius of on September 30, 2021 by guest. Protected copyright. headed the ball in the wrong manner. the impression or imprint of the ball on the paper, i.e. Levendusky et al.17 studied the impact characteris- contact of ball surface.
Recommended publications
  • USTA Parents Guide to 10 and Under Tennis
    10 AND UNDER TENNIS A Parents Guide 10andUnderTennis.com little activity, your child is unlikely to develop a love of the game Chapter 1: Introduction and will instead find another activity that is more compelling. Parents want to do what is best for their children. They want to Long-term goals include the enjoyment of an activity they can play provide meaningful and positive experiences that will be enjoyable for a lifetime. It is a game kids can play with friends and family. and lead to the positive development of the child. Tennis is a sport Tennis is a fantastic way to spend quality time as a family. that a child can learn at a young age and enjoy with friends and Be aware of putting pressure on children for results, but make family for a lifetime. This guide will provide you with the right tools sure you recognize and acknowledge effort. In this country, 70 to get your child started correctly, keeping the focus on the fun, percent of kids quit organized sport by the age of 13, and the top active and lifelong benefits of tennis. three reasons given by kids are: Goals 1. It’s not fun anymore It is important to keep participation in youth sports in perspective and 2. Parental pressure to perform to understand why kids play. Many times adults have grand ideas of a 3. Unmet coaching expectations professional career or even a college scholarship. While these could be long-term goals for those players who eventually specialize in a sport, children play for different reasons.
    [Show full text]
  • Competition Boxing Gloves Approved by the California State Athletic
    STATE OF CALIFORNIA—STATE AND CONSUMER SERVICES AGENCY Gavin Newsom., Governor California State Athletic Commission 2005 Evergreen Street Suite #2010 Sacramento, CA 95815 www.dca.ca.gov/csac/ - (916) 263-2195 Commissioner John Carvelli, Chair l Executive Officer, Andy Foster After a careful examination and research process, the following list of gloves have been approved by the California State Athletic Commission (CSAC). The oversight for the approval process was conducted by Executive Officer Andy Foster and California State Chief Inspector Mark Relyea. Effective 2021.08.17 ACTION PRO GEAR ADIDAS ADIDAS ADIDAS ADIDAS Action Pro Lace Up Pro Mex Combo 2 & Pro Mex Combo Speed Tilt 750 Adistar 8/10oz Boxing Gloves Horse-Hair (8oz/10oz) “adiBFHM07” (8oz) (8oz/10oz BARRERA BOXING BRAVE HART CLETO REYES CLETO REYES DUKES ProFight Safetec Dukes (8oz / 10oz) Brave Hart (8oz/10oz) Model B208 & B210 Mod B408 & B410 (8/10oz) EVERLAST EVERLAST EVERLAST EVERLAST ERUPTION Powerlock Professional Protex3 Pro Fight Boxing MX/MX Elite Professional 1910 Professional Fight Eruption (8/10oz) Boxing Gloves Gloves Fight Boxing Gloves Boxing Gloves FAIRTEX FIGHT BRO LANGTON FLY SPORTS (UK) ADONIS GARCIA Fight Bro Pro Boxing Professional Langton Adonis Garcia Pro Fight Gloves Halcyon Gloves Gloves Glove Professional Vortex ADONIS GARCIA GLOBAL BOXING GRANTS Global Boxing Gloves Professional Boxing Reaper Pro Fight Gloves (8/10) Gloves HAYABUSA HEAVY HITTERS MONGKOL MUAY THAI NAZOBOXING NO BOXING NO LIFE HLBG01 Boxing Nazo Boxing Challenger Line (8oz/10oz) (8oz/10oz)
    [Show full text]
  • Download FULL Daedo Catalog
    2012/13 HISTORY HISTORY CURRENTLY DAEDO HAS OVER HISTORY 45 NATIONAL DISTRIBUTORS IN 5 CONTINENTS Europe Spain, Belgium, Bulgaria, Croatia, Cyprus, Czech Rep., Finland, France, Germany, Greece, Hungary, Israel, Italy, Latvia, Netherlands, Norway, Poland, Portugal, Romania, Russia, Switzerland, Turkey, United Kingdom, Ukraine, Denmark Africa Egypt, Morocco Asia China, Hong Kong, Iran, Japan, Jordan, Qatar, Lebanon, Macau, Taiwan, Uzbekistan, Malaysia, Company Recognized by the World Korea Foundation of Daedo Official sponsor and supplier of Taekwondo Federation (WTF) 2007-2010 1987-2012 Official sponsor of 2006-2008 Official sponsor of the 1983 2005 the Spanish National Team and Spanish Portuguese National Team and Portuguese International, Notariado Street no. 11, the World TKD Championships in Madrid (Spain) Taekwondo Federation (FET) Taekwondo Federation America Barcelona Argentina, Canada, Colombia, Olympic Games in Beijing, 2008 2004-2009 Official sponsor of the 1998-2004 Official sponsor of the Costa Rica, Chile, Ecuador, Mexico, 2005-2011 Karate Official supplier of Taekwondo equipment German National Team French National Team Netherland Antilles, Peru, USA, Brazil 1986 Daedo shop Protective Equipment Approved by and German Taekwondo and France Taekwondo opens in Balmes street no. European Karate Federation (EKF) Union (DTU) Federation Oceania 55, Barcelona (downtown) 2010 Daedo PSS (Electronic Australia, New Zealand, Tahiti Protector for Taekwondo) Recognized by the 2006-2011 2010-2012 WTF, 2010-2013 Official sponsor of the Official
    [Show full text]
  • Ball Change in Tennis: How Does It Affect Match Characteristics and Rally Pace in Grand Slam Tournaments?
    Original Article Ball change in tennis: How does it affect match characteristics and rally pace in Grand Slam tournaments? JAN CARBOCH 1 , MATEJ BLAU, MICHAL SKLENARIK, JAKUB SIMAN, KRISTYNA PLACHA Department of Sport Games, Faculty of Physical Education and Sport, Charles University, Prague, Czech Republic ABSTRACT Tennis balls degrade after fast racket and ground impacts until they are changed after agreed number of games. The aim is to analyse the new (after the ball change) and used balls (prior to the ball change) match characteristics and the frequency of rally shots in matches in the Australian Open, French Open and Wimbledon in 2017. Paired samples t-tests and Cohen d were used to compare the point duration, number of rally shots, time between the points, rally pace and work to rest ratio among these tournaments. There was a significant difference in rally shots number played with the new balls (4.17 ± 0.86) compared to the used balls (4.60 ± 1.10) in female matches (p = 0.047); in males matches large effect size was found (d = - 0.83) in the same variable with the new balls (4.44 ± 0.57) and used balls (4.95 ± 0.66), both happened in the Australian Open. No difference was found between the new and used balls in the rally pace in all the observed events. The Wimbledon match characteristics were least affected by the ball change. The ball degradation affected the match characteristic the most in the Australian Open, in terms of more rally shots, but not slowing down the rally pace.
    [Show full text]
  • Punching Impact Effect of the Karate, Boxing, and the Thumbless Boxing Glove
    PUNCHING IMPACT EFFECT OF THE KARATE, BOXING, AND THE THUMBLESS BOXING GLOVE Paul K. SMITH Department of Physical Education Hun~ Performance Research Laboratory West Chester University West Chester, Pennsylvania 19383 Only limited information is available relative to the impact characteristics of the foam karate glove, the conventional boxing glove, or the recently developed thurnbless boxing glove. It was therefore the main problem in this investigation to determine the COllparative effects on fist velocity and resultant manenturn of a heavy bag when punched by low, intennediate, and high skill level subjects wearing 1) no glove, 2) the foarr. karate glove, 3) the conventional boxing glove, and 4) the thurnbless boxing slove. Considering the contact involved, intentional or otherY'ise, the injury rate is relatively law for karate and boxing when compared to other sports. Yet, serious injuries do occur. The karate injury rate is about 34% with 0.02% being serious and only four deaths have been reported. In boxing, 335 deaths were reported between 1945 and 1979 and considerable negative publicity regarding brain d~age from repeated head impact has emersed recently. Forces sufficient to cause accelerations of 80 g (784 N at about 8 ms contact tirre) have been established as the concussive or knockout level according to the Wayne State Tolerance Curve. Comparable forces applied to the body can cCluse rurtures, contusions, and other injury to organs of the trunk, depending on the impact site. N~~onian principles of momentum and energy conservation using High-Speed Cinenetography and Force­ T:ir.,e apparatus have been errployed by Several researchers to estimate force levels for various types of punches and strikes.
    [Show full text]
  • Influence of Physical Properties of Hockey Stick Blade on Shots
    Influence of Physical Properties of Hockey Stick Blade on Shots Martin Plesch1, 2, Samuel Jan´ Plesn´ık3, and Natalia´ Ruˇzickovˇ a´ 4, * 1Institute of Physics, Slovak Academy of Sciences, Bratislava, Slovak Republic 2Institute of Computer Science, Masaryk University, Brno, Czech Republic 3Prve´ Sukromn´ e´ Gymnazium,´ Bratislava, Slovak Republic 4Institute of Science and Technology, Klosterneuburg, Austria *[email protected] ABSTRACT Parameters of a shot of an ice hockey player are mostly determined by the capabilities of the player and the physical properties of the stick used. To reach better performance, every hockey player uses also a hockey tape for an adjustment of the stick blade, that changes both the damping properties as well as the friction coefficient of the blade surface. To show the unexpected extent to which these physical properties of the blade affect the shot, we compared two types of blade cover: traditional tape (rolled onto the blade) and a blade sticker that adheres to both sides of the hockey stick blade. We analysed high-speed recordings of two types of shots by 13 players, ranging from amateurs and junior players to NHL superstars. The two covers differ greatly in friction coefficient and stiffness, which results in significantly (more than 99% confidence) greater speed, rotation and energy when using the stiffer and rougher sticker. 1 Introduction Ice hockey sticks have experienced a gradual development in recent decades. Progress in material science allowed the replacement of widely used wood by composite materials that nowadays represent the standard for hockey players worldwide. Broad usage of new materials like aluminium and composites has become an interesting topic for research as well.
    [Show full text]
  • Learning of Cooperative Actions in Multi-Agent Systems: a Case Study of Pass Play in Soccer Hitoshi Matsubara, Itsuki Noda and Kazuo Hiraki
    From: AAAI Technical Report SS-96-01. Compilation copyright © 1996, AAAI (www.aaai.org). All rights reserved. Learning of Cooperative actions in multi-agent systems: a case study of pass play in Soccer Hitoshi Matsubara, Itsuki Noda and Kazuo Hiraki Electrotechnical Laboratory 1-1-4 Umezono, Tsukuba, Ibaraki, 305 JAPAN e-maih {matsubar, noda, khiraki} @etl.go.jp Abstract Fromthe standpoint of multi-agent systems, soccer (association football), whichis just one of usual team sports, makea good example of problems in the real world which is moderately abstracted. Wehave cho- sen soccer as one of standard problems for the study on multi-agent systems, and we are now developing a soccer server, which provides a commontest-bench to various multi-agent systems. Wepresent an exper- iment on cooperative action learning amongsoccer- player agents on the server. Oursoccer agent can learn whetherhe should shoot a ball or pass it. Introduction Soccer (association football) is a typical team game, in which each player is required to play cooperatively. Figure 1: Soccer players and a ball And soccer is a real-time game in which situation changes dynamically. We have chosen soccer as one of standard problems for the study on multi-agent sys- ¯ Team play is advantageous. tems, and we are now developing a soccer server for ¯ As precise communication by language is not ex- the research. We present an experiment on coopera- pected, effectiveness must be provided by combining tive action learning amongsoccer-player agents on the simple signals with the situation. server. These characteristics show that soccer is an appro- Soccer as a Standard Problem priate example for evaluation of multi-agent systems.
    [Show full text]
  • Nassau Sports Product Catalog
    2019 www.nassau.co.kr NASSAU SPORTS E - mail : [email protected] Tel : +82-70-4493-4577 Fax : +82-32-326-2570 PRODUCT CATALOG Address : Nassau B/D, 42, Bogwang-ro 106beon-gil, Deogyang-gu,Goyang-si, Gyeonggi-do, Republic of Korea Since our foundation in 1971 as a company specializing in sporting goods, we have been endeavoring hard to keep our technology state-of-the-art and provide our custom- ers the best service they can get in the industry. In an effort to do so, we could manage to get appointed as an official match ball supplier for several international tournaments: 86 Asian Games for tennis, soccer, handball and volleyball, 88 Olympics Games for tennis and 4 Grand Slam tournaments for tennis. In addition, we got our balls interna- tionally approved by world-renowned sports federations such as International Tennis Federation(ITF), Fédération Internationale de Volleyball(FIVB), International Handball Federation(IHF), Fédération Internationale de Football Association(FIFA) and Korea Football Association(KFA). 028 Volleyball Section 1 04 History Section 5 029 PATRIOT 3000 / NEW PATRIOT(VNP) 030 AERO DYNAMIC(VAD) / POWER DYNAMIC(VPD) / ATTACK(VA) Section 2 06 Soccer Ball / Futsal Ball / Handball / Rugby Ball 08 TUJI FA “New Technology of 4 Panel” 010 TUJI FA (SSTG-5FF) 011 TUJI PREMIUM(SSTG-P) / TUJI PREMIUM(SSTP) / TUJI(SSTG-5) Section 6 032 Tennis Racket / Badminton Racket / Shuttlecock / Padminton 012 NEW TUJI(SSHTJ) / TUJI(SSNTJ) / TUJI 88(SBT88) 034 SENIOR TOUR / SENIOR TEAM / OPTIMUM PRO 013 TUJI TRAPPER(SBTR) / CHAMPIONSHIP
    [Show full text]
  • Return to Competition: Individual Sport Considerations
    Pennsylvania Interscholastic Athletic Association Return to Competition: Individual Sport Considerations Pennsylvania Interscholastic Athletic Association National Federation of State High School Associations Pennsylvania Department of Education Pennsylvania Department of Health Sports Medicine Advisory Committee TABLE OF CONTENTS General Considerations for All Sports ..................................................................................................................... 2 General Considerations for Officials ....................................................................................................................... 7 General Considerations for Fall Sports: Cross Country ........................................................................................................................................... 11 Field Hockey ............................................................................................................................................. 12 Football .................................................................................................................................................... 14 Golf ........................................................................................................................................................... 17 Soccer ....................................................................................................................................................... 18 Tennis ......................................................................................................................................................
    [Show full text]
  • Stick Making Guide
    How To Make a Broomball Stick: An Introductory Guide Created by: Justin Hicks Ben Hoover Michael W. Johnson Tyler Schwartz Introduction Broomball has become a tradition for many Michigan Tech students during the long winter months in Houghton, Michigan. The following guide provides step‐by‐ step instructions on how to make a broomball stick for IRHC Broomball at Michi‐ gan Technological University. It is best suited for individuals who have never con‐ structed a broomball stick before. It can also be used as an instructional resource for those teaching others how a broomball stick is constructed. The guide will lay out the general procedure for constructing a broomball stick. The guide will also discuss different styles of broomball sticks that can be made and the IRHC rules and regulations that pertain to the construction of broomball sticks. Remember that this guide is intended only for those individual who going to be competing in IRHC Broomball at Michigan Tech. Broom Diagram (Yes, this is a diagram of a broom!) This diagram points out some im‐ portant parts of the broom, but more importantly, gives them a standard name that will be used throughout the rest of the guide. Broom Handle Metal Coil Metal Ring Broom Head Strings Bristles IRHC Rules and Regulations Page 6 of the IRHC Broomball Rules and Details packet states the following: ‐ Only the broom’s original handle may be attached to the original broom head (i.e. no homemade brooms). ‐ Brooms must have a wooden handle. ‐ No official Broomball brooms will be allowed (hard plastic brooms). ‐ A minimum of six (6) inches of bristle must extend below the broom’s handle.
    [Show full text]
  • Towel Flip Standing Long Jump
    Foot Bottle Flip Trap Shoe Flip Spoon Your Flip Relay Lid Soccer Towel Flip Water Bottle Scooter Pillow Bowl Ball Bullseye Race Trap Stack The Backboard Sneakers Bank It Stacks & Jacks Fan Favorite Shoe Balance Standing Pillowcase Sock-er Long Jump Penguin Race Sack Race Keep it Up Skee-Ball Shoe Flip Back Click Here for Video Demonstration Equipment- 1 Sneaker, Open Space, timer/stopwatch Set Up- Make sure you have plenty of open space around you. 1 Point Directions: ● How many points can you score in a minute. 2 Points ● Put your sneaker on just over your toes. ● When timer starts, flick your shoe off your foot. ● 1pt- sneaker lands on side; 2 pts- sneaker lands 3 Points upright; 3 pts- sneaker lands upside down ● 0pts- sneaker hits the ceiling/fan/knocks something over. ● Write your score on Field Day Scorecard. Click Here for Video Stack the Sneakers Back Demonstration Equipment- 10-15 pairs of sneakers of sneakers/shoes, item to create home base (plate, cone, cup) Set Up- Make a pile of shoes/sneakers in the middle of players. Place home bases equal distance from shoe pile. Directions: ● Object is to stack the sneakers/shoes on top of one another to create a tall stack of shoes. ● When signal begins, go to stack and take 1 shoe/sneaker and place it on your home base. ● Repeat taking 1 shoe/sneaker at a time until all sneakers/shoes are gone from the middle pile ● It is okay if your stack falls. Fix the stack before you go and get another shoe.
    [Show full text]
  • A Type System for Format Strings E
    ifact t * r * Comple t te A A n * te W E is s * e C n l l o D C A o * * c T u e m S s E u e S e n I R t v A Type System for Format Strings e o d t y * s E a * a l d u e a t Konstantin Weitz Gene Kim Siwakorn Srisakaokul Michael D. Ernst University of Washington, USA {weitzkon,genelkim,ping128,mernst}@cs.uw.edu ABSTRACT // Untested code (Hadoop) Most programming languages support format strings, but their use Resource r = ... format("Insufficient memory %d", r); is error-prone. Using the wrong format string syntax, or passing the wrong number or type of arguments, leads to unintelligible text // Unchecked input (FindBugs) output, program crashes, or security vulnerabilities. String urlRewriteFormat = read(); This paper presents a type system that guarantees that calls to format(urlRewriteFormat, url); format string APIs will never fail. In Java, this means that the API will not throw exceptions. In C, this means that the API will not // User unaware log is a format routine (Daikon) log("Exception " + e); return negative values, corrupt memory, etc. We instantiated this type system for Java’s Formatter API, and // Invalid syntax for Formatter API (ping-gcal) evaluated it on 6 large and well-maintained open-source projects. format("Unable to reach {0}", server); Format string bugs are common in practice (our type system found Listing 1: Real-world code examples of common programmer 104 bugs), and the annotation burden on the user of our type system mistakes that lead to format routine call failures.
    [Show full text]