Article View: comp.sys.next.programmer
Article #935Re: "bind"ing sockets, -ObjC, and memset....A puzzle
From: Daryll Strauss
Date: Mon, 31 Aug 1992 16:47
Date: Mon, 31 Aug 1992 16:47
12 lines
1041 bytes
1041 bytes
In article <1992Aug28.190230.2670@next.cambridge.ma.us>, simsong (Simson L. Garfinkel) writes: |> Apparently, when you include the -ObjC flag, all stack variables are |> initialized to 0. |> It would be a really bad idea to rely on that "feature." You must clear the sockaddr structure to use it. The C spec says that stack variables have unknown values. I've need heard anything different in for ObjC. So relying on the compiler to initialize variables for you is a disaster waiting to happen. - |Daryll
Technical Details
Message-ID:
<17tieoINNsr5@news.aero.org>Path:
arc1-ca.pugleaf.net!sparky!uunet!pmafire!news.dell.com!swrinde!elroy.jpl.nasa.gov!usc!aero.org!news.aero.org!Aero.org!straussReferences:
<1992Aug26.043241.2355@relief.com> <1992Aug28.190230.2670@next.cambridge.ma.us>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!pmafire!news.dell.com!swrinde!elroy.jpl.nasa.gov!usc!aero.org!news.aero.org!Aero.org!strauss From: strauss@Aero.org (Daryll Strauss) Newsgroups: comp.sys.next.programmer Subject: Re: "bind"ing sockets, -ObjC, and memset....A puzzle Message-ID: <17tieoINNsr5@news.aero.org> Date: 31 Aug 92 16:47:20 GMT References: <1992Aug26.043241.2355@relief.com> <1992Aug28.190230.2670@next.cambridge.ma.us> Organization: The Aerospace Corporation Lines: 12 NNTP-Posting-Host: armadillo.aero.org