Project homepage Mailing List  Warmcat.com  API Docs  Github Mirror 
{"schema":"libjg2-1", "vpath":"/git/", "avatar":"/git/avatar/", "alang":"", "gen_ut":1752655379, "reponame":"openssl", "desc":"OpenSSL", "owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://warmcat.com/repo/openssl", "f":3, "items": [ {"schema":"libjg2-1", "cid":"5ce0f2b89198f7f89a4321df11a6728c", "commit": {"type":"commit", "time": 1534188800, "time_ofs": 60, "oid_tree": { "oid": "b8cad1e3c1f64c88e60505ae545c79c9bc518bf7", "alias": []}, "oid":{ "oid": "2369111fd94ebc9b7d37e68f3ea9629f2fe5fa2e", "alias": []}, "msg": "crypto/o_fopen.c: alias fopen to fopen64.", "sig_commit": { "git_time": { "time": 1534188800, "offset": 60 }, "name": "Matt Caswell", "email": "matt@openssl.org", "md5": "10f7b441a32d5790efad9fc68cae4af2" }, "sig_author": { "git_time": { "time": 1530093465, "offset": 120 }, "name": "Andy Polyakov", "email": "appro@openssl.org", "md5": "50bd64fa2a792cbbf679fa16213a3b2a" }}, "body": "crypto/o_fopen.c: alias fopen to fopen64.\n\nOriginally fopen(3) was called from bio/bss_file.c, which performed the\naliasing. Then fopen(3) was moved to o_fopen.c, while \u0022magic\u0022 definition\nwas left behind. It's still useful on 32-bit platforms, so pull it to\no_fopen.c.\n\nReviewed-by: Paul Dale \u003cpaul.dale@oracle.com\u003e\nReviewed-by: Tim Hudson \u003ctjh@openssl.org\u003e\n(Merged from https://github.com/openssl/openssl/pull/6596)\n" , "diff": "diff --git a/crypto/o_fopen.c b/crypto/o_fopen.c\nindex 1090a06..f08f99b 100644\n--- a/crypto/o_fopen.c\n+++ b/crypto/o_fopen.c\n@@ -7,6 +7,24 @@\n * https://www.openssl.org/source/license.html\n */\n \n+# if defined(__linux) || defined(__sun) || defined(__hpux)\n+/*\n+ * Following definition aliases fopen to fopen64 on above mentioned\n+ * platforms. This makes it possible to open and sequentially access files\n+ * larger than 2GB from 32-bit application. It does not allow to traverse\n+ * them beyond 2GB with fseek/ftell, but on the other hand *no* 32-bit\n+ * platform permits that, not with fseek/ftell. Not to mention that breaking\n+ * 2GB limit for seeking would require surgery to *our* API. But sequential\n+ * access suffices for practical cases when you can run into large files,\n+ * such as fingerprinting, so we can let API alone. For reference, the list\n+ * of 32-bit platforms which allow for sequential access of large files\n+ * without extra \u0022magic\u0022 comprise *BSD, Darwin, IRIX...\n+ */\n+# ifndef _FILE_OFFSET_BITS\n+# define _FILE_OFFSET_BITS 64\n+# endif\n+# endif\n+\n #include \u0022internal/cryptlib.h\u0022\n \n #if !defined(OPENSSL_NO_STDIO)\n","s":{"c":1752655379,"u": 35188}} ],"g": 36578,"chitpc": 0,"ehitpc": 0,"indexed":0 , "ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}