Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

マクロの Python 対応 #1866

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

マクロの Python 対応 #1866

wants to merge 1 commit into from

Commits on Sep 22, 2024

  1. don't forget to call Py_FinalizeEx after Py_InitializeEx

    make PyObjectPtr noncopyable
    
    auto call Py_XDECREF
    
    show error message when LodLibrary fails
    
    CPythonMacroManager.cpp で g_pEditView グローバル変数を使うのを止める
    警告除去
    
    remove unused utf8_to_utf16le function
    
    show Python error message with MessageBox
    
    use LoadLibraryExedir function
    
    use PyErr_Fetch to get error message string
    
    detect and erase UTF-8 BOM from fread string in CPythonMacroManager::LoadKeyMacro
    
    use UTF-8 encoding string for filename argument of Py_CompileString function
    
    add error checks
    
    update handleFunction to use PyUnicode_AsWideCharString instead of PyUnicode_AsUTF8AndSize
    
    use case-insensitive string comparison for python file extension
    
    add file open error check in CPythonMacroManager::LoadKeyMacro method
    
    call GetProcAddress only after DLL is loaded
    
    use PyUnicode_AsUTF8AndSize instead of PyUnicode_AsUTF8 so that vulnerable strlen can be avoided
    explicitly cast function pointer to void* before copying it to void* type variable
    
    マクロの Python 対応
    beru committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    96bbe32 View commit details
    Browse the repository at this point in the history