[issue44391] PC/launcher.c,one more argument than required

2021-06-11 Thread Brother Beer

New submission from Brother Beer :

cpython-3.10.0b2/PC/launcher.c, line 347

One more argument than required?

 345 else if (attrs & FILE_ATTRIBUTE_DIRECTORY) {
 346 debug(L"locate_pythons_for_key: '%ls' is a directory\n",
 347   ip->executable, attrs);
 348 }

--
messages: 395620
nosy: brotherbeer
priority: normal
severity: normal
status: open
title: PC/launcher.c,one more argument than required
type: behavior
versions: Python 3.10

___
Python tracker 
<https://bugs.python.org/issue44391>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44390] PC/frozen_dllmain.c, some expressions have no side effects

2021-06-11 Thread Brother Beer


New submission from Brother Beer :

cpython-3.10.0b2/PC/frozen_dllmain.c, line 66

 63 void PyWinFreeze_ExeInit(void)
 64 {
 65 char **modName;
 66 for (modName = possibleModules;*modName;*modName++) {
 67 /*  printf("Initialising '%s'\n", *modName); */
 68 CallModuleDllMain(*modName, DLL_PROCESS_ATTACH);
 69 }
 70 }

'*' in '*modName++' is redundant? Line 82 has the same problem

 76 void PyWinFreeze_ExeTerm(void)
 77 {
 78 // Must go backwards
 79 char **modName;
 80 for (modName = possibleModules+Py_ARRAY_LENGTH(possibleModules)-2;
 81  modName >= possibleModules;
 82  *modName--) {
 83 /*  printf("Terminating '%s'\n", *modName);*/
 84 CallModuleDllMain(*modName, DLL_PROCESS_DETACH);
 85 }
 86 }

--
messages: 395619
nosy: brotherbeer
priority: normal
severity: normal
status: open
title: PC/frozen_dllmain.c, some expressions have no side effects
type: behavior
versions: Python 3.10

___
Python tracker 
<https://bugs.python.org/issue44390>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44389] Modules/_ssl.c, repeated 'SSL_OP_NO_TLSv1_2'

2021-06-11 Thread Brother Beer


New submission from Brother Beer :

cpython-3.10.0b2/Modules/_ssl.c  line 3576

3570 static int
3571 set_options(PySSLContext *self, PyObject *arg, void *c)
3572 {
3573 long new_opts, opts, set, clear;
3574 long opt_no = (
3575 SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 | SSL_OP_NO_TLSv1 |
3576 SSL_OP_NO_TLSv1_1 | SSL_OP_NO_TLSv1_2 | SSL_OP_NO_TLSv1_2
3577 );

'SSL_OP_NO_TLSv1_2' is repeated, are any other items missing?

--
files: _ssl_c_line_3576.png
messages: 395612
nosy: brotherbeer
priority: normal
severity: normal
status: open
title: Modules/_ssl.c, repeated 'SSL_OP_NO_TLSv1_2'
type: behavior
versions: Python 3.10
Added file: https://bugs.python.org/file50103/_ssl_c_line_3576.png

___
Python tracker 
<https://bugs.python.org/issue44389>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com