<feed xmlns='http://www.w3.org/2005/Atom'>
<title>otp.git/lib/odbc/c_src, branch KennethL-patch-1</title>
<subtitle>Mirror of Erlang/OTP repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/'/>
<entry>
<title>update copyright-year</title>
<updated>2016-03-15T14:19:56+00:00</updated>
<author>
<name>Henrik Nord</name>
<email>henrik@erlang.org</email>
</author>
<published>2016-03-15T14:19:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=6664eed554974336909d3ffe03f20349cc4c38fd'/>
<id>6664eed554974336909d3ffe03f20349cc4c38fd</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Change license text to APLv2</title>
<updated>2015-06-18T09:31:02+00:00</updated>
<author>
<name>Bruce Yinhe</name>
<email>bruce@erlang.org</email>
</author>
<published>2015-06-18T09:31:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=738c34d4bb8f1a3811acd00af8c6c12107f8315b'/>
<id>738c34d4bb8f1a3811acd00af8c6c12107f8315b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix signedness bug</title>
<updated>2014-11-14T02:53:16+00:00</updated>
<author>
<name>Dmitry Belyaev</name>
<email>be.dmitry@gmail.com</email>
</author>
<published>2014-11-13T05:11:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=ba8f70f0e9279e84350be840529c5e9b66f7f55b'/>
<id>ba8f70f0e9279e84350be840529c5e9b66f7f55b</id>
<content type='text'>
The regression was introduced by making byte type signed.

Bitwise OR (|) applied to signed char (byte) and any longer type reqires the former to expand to the same size.
When the char is negative it is expanded with sign bit filling the extra bytes causing the unexpected result.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The regression was introduced by making byte type signed.

Bitwise OR (|) applied to signed char (byte) and any longer type reqires the former to expand to the same size.
When the char is negative it is expanded with sign bit filling the extra bytes causing the unexpected result.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix odbcserver warnings</title>
<updated>2014-11-14T02:53:16+00:00</updated>
<author>
<name>Dmitry Belyaev</name>
<email>be.dmitry@gmail.com</email>
</author>
<published>2014-11-13T04:55:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=d68a307e7e40bf0367d1b2c6e2cc0d5fcadc17da'/>
<id>d68a307e7e40bf0367d1b2c6e2cc0d5fcadc17da</id>
<content type='text'>
These are signaled by -Wall
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These are signaled by -Wall
</pre>
</div>
</content>
</entry>
<entry>
<title>Delete odbcserver unused variables</title>
<updated>2014-11-14T02:53:16+00:00</updated>
<author>
<name>Dmitry Belyaev</name>
<email>be.dmitry@gmail.com</email>
</author>
<published>2014-11-13T05:12:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=8aea937d5a2a1edc5ff36a99b5675259d18c88ce'/>
<id>8aea937d5a2a1edc5ff36a99b5675259d18c88ce</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>odbc: Suppress signedness warnings for 'char *'</title>
<updated>2014-07-15T15:36:05+00:00</updated>
<author>
<name>Björn-Egil Dahlberg</name>
<email>egil@erlang.org</email>
</author>
<published>2014-06-23T23:23:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=211d9b31a73e30f44a428a2328b7705136f263d5'/>
<id>211d9b31a73e30f44a428a2328b7705136f263d5</id>
<content type='text'>
Three different pointer types are used for strings.

SQLCHAR pointer - used against ODBC driver
char pointer - used against erl_interface
byte pointer - used internally

SQLCHAR is 'unsigned char' while erl_interface is 'signed char'

byte pointer should probably not be used at all.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Three different pointer types are used for strings.

SQLCHAR pointer - used against ODBC driver
char pointer - used against erl_interface
byte pointer - used internally

SQLCHAR is 'unsigned char' while erl_interface is 'signed char'

byte pointer should probably not be used at all.
</pre>
</div>
</content>
</entry>
<entry>
<title>Include ctype.h in odbcserver.c for tolower()</title>
<updated>2014-01-10T10:47:33+00:00</updated>
<author>
<name>Anthony Ramine</name>
<email>n.oxyde@gmail.com</email>
</author>
<published>2013-11-15T10:17:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=90cb1857c26431ad8f5266f880b3654dc2dd869e'/>
<id>90cb1857c26431ad8f5266f880b3654dc2dd869e</id>
<content type='text'>
odbcserver.c:2772:12: warning: implicit declaration of function 'tolower' is invalid in C99
      [-Wimplicit-function-declaration]
                str[i] = tolower(str[i]);
                         ^
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
odbcserver.c:2772:12: warning: implicit declaration of function 'tolower' is invalid in C99
      [-Wimplicit-function-declaration]
                str[i] = tolower(str[i]);
                         ^
</pre>
</div>
</content>
</entry>
<entry>
<title>Added a few input checks which prevent odbcserver crash if it's executed</title>
<updated>2013-06-27T05:42:57+00:00</updated>
<author>
<name>Sergei Golovan</name>
<email>sgolovan@gmail.com</email>
</author>
<published>2013-06-27T05:42:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=b8e5024b2d48c5375fa3dd30121724fab9676e99'/>
<id>b8e5024b2d48c5375fa3dd30121724fab9676e99</id>
<content type='text'>
and supplied incorrect data to stdin. A crash example:

echo -en "\x0\x0\x0\x1\x0" | ./odbcserver
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
and supplied incorrect data to stdin. A crash example:

echo -en "\x0\x0\x0\x1\x0" | ./odbcserver
</pre>
</div>
</content>
</entry>
<entry>
<title>odbcserver 64bit bug for SQL_C_SLONG type</title>
<updated>2013-03-27T15:47:51+00:00</updated>
<author>
<name>Satoshi Kinoshita</name>
<email>kino@cloudian.com</email>
</author>
<published>2012-11-01T05:56:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=0555a3a947c3b63028daf1c4314c4d6bd4066732'/>
<id>0555a3a947c3b63028daf1c4314c4d6bd4066732</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update copyright years</title>
<updated>2013-01-25T16:58:15+00:00</updated>
<author>
<name>Björn-Egil Dahlberg</name>
<email>egil@erlang.org</email>
</author>
<published>2013-01-25T16:58:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=3fb4def74a64a63fbb2b28aef6c5920d7db3ad6e'/>
<id>3fb4def74a64a63fbb2b28aef6c5920d7db3ad6e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
