Re: Re: Tracker URL working ;)
Felipe Magno de Almeida <[email protected]>
| Newsgroups | gmane.network.bit-torrent.general |
|---|---|
| Message-ID | <[email protected]> |
I think there is too much to know and only practice(and lots of reading in the design and language support subjects) can make he learns how to avoid buffer overruns and a lot of other things that will come up... One thing that may help is a "malloc" and "free" implementation that warns you when you writed more than the size block, or things like that... But it is more easy to program it in a modular way and correct than use such kinds of tools... Olaf van der Spek wrote: >>--- In [email protected], "Olaf van der Spek" <OvdSpek@L...> >>wrote: >> >>>>--- In [email protected], Mike Ravkine <krypt@m...> >> >>wrote: >> >>>>>skybuckflying wrote: >> >>>>Anyway programming is never trivial... make one little mistake >>>>somewhere and the one billionth buffer overrun is born =D >>> >>>If that's true then you're using the wrong programming style. >> >>Oh that's interesting. >> >>I am always willing to learn =D >> >>Would you be so kind and share your wisedom about preventing buffer >>overruns ? > > > Do not use raw pointers to variable size buffers. > Instead, write a class that encapsulates the buffer and it's size and use > that class for any write operation to the buffer. > That way, you only have to make sure the class is safe, which is much easier > than making sure your entire application is safe. > > >>I am sure millions of programmers are hanging on your lips lol. > > > > > > > Yahoo! Groups Links > > > > > > > -- Felipe Magno de Almeida UIN: 2113442 email: felipe.almeida@ic unicamp br, felipe.m.almeida@gmail com I am a C, modern C++, MFC, ODBC, Windows Services, MAPI developer from synergy, and Computer Science student from State University of Campinas(UNICAMP). To know more about: Unicamp: http://www.ic.unicamp.br Synergy: http://www.synergy.com.br current work: http://www.mintercept.com ------------------------ Yahoo! Groups Sponsor --------------------~--> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar. Now with Pop-Up Blocker. Get it for free! http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/dkFolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/BitTorrent/ <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/