<feed xmlns='http://www.w3.org/2005/Atom'>
<title>otp.git/lib/odbc/c_src, branch master</title>
<subtitle>Mirror of Erlang/OTP repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/'/>
<entry>
<title>Document deprecations and removals</title>
<updated>2019-02-25T10:18:32+00:00</updated>
<author>
<name>Rickard Green</name>
<email>rickard@erlang.org</email>
</author>
<published>2019-02-23T17:59:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=00fa7a8def826d2a4c8fb9e2c38208103bf04341'/>
<id>00fa7a8def826d2a4c8fb9e2c38208103bf04341</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #2065 from janchochol/fix-get_diagnos-odbcserver</title>
<updated>2019-01-08T13:29:52+00:00</updated>
<author>
<name>Ingela Andin</name>
<email>ingela@erlang.org</email>
</author>
<published>2019-01-08T13:29:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=e9eddc4a060a6603a3fb1960c253aa45dd777746'/>
<id>e9eddc4a060a6603a3fb1960c253aa45dd777746</id>
<content type='text'>
odbc: Fix stack corruption in get_diagnos in odbcserver</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
odbc: Fix stack corruption in get_diagnos in odbcserver</pre>
</div>
</content>
</entry>
<entry>
<title>odbc: Fix stack corruption in get_diagnos in odbcserver</title>
<updated>2018-12-19T07:05:46+00:00</updated>
<author>
<name>Jan Chochol</name>
<email>jan.chochol@gooddata.com</email>
</author>
<published>2018-12-19T07:02:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=75ae8bc8efa94103d68cb203c1e81088f9c38d32'/>
<id>75ae8bc8efa94103d68cb203c1e81088f9c38d32</id>
<content type='text'>
SQLGetDiagRec can fill output buffer and return SQL_SUCCESS_WITH_INFO.
In that case we can not use strcat on diagnos.error_msg as it will write
outside allocated space.
Correctly set acc_errmsg_size in such case.

See also ERL-808 at bugs.erlang.org.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
SQLGetDiagRec can fill output buffer and return SQL_SUCCESS_WITH_INFO.
In that case we can not use strcat on diagnos.error_msg as it will write
outside allocated space.
Correctly set acc_errmsg_size in such case.

See also ERL-808 at bugs.erlang.org.
</pre>
</div>
</content>
</entry>
<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>
</feed>
