ipdb-luajit icon indicating copy to clipboard operation
ipdb-luajit copied to clipboard

Results 2 ipdb-luajit issues
Sort by recently updated
recently updated
newest added

您好,我使用您们提供的ipdb-luajit解析ipv4地址001.000.128.000得到结果为: [](url) ![image](https://user-images.githubusercontent.com/45486380/83252857-8d150c80-a1de-11ea-9ccd-202385cb5b54.png) 然后,在使用相同的ipdb文件的情况下,使用ipdb-go解析001.000.128.000的结果为: ![image](https://user-images.githubusercontent.com/45486380/83253408-82a74280-a1df-11ea-8be9-8f6e543be4d9.png) 经过对比发现ipdb-luajit reader.lua里调用的C函数inet_pton: ![image](https://user-images.githubusercontent.com/45486380/83253586-c8fca180-a1df-11ea-8617-198f1361e594.png) 无法正确处理001.000.128.000这种有前导0的ip,以下是inet_pton分别对001.000.128.000和1.0.128.0的处理结果: 1)001.000.128.000 不正常 ![image](https://user-images.githubusercontent.com/45486380/83253937-72439780-a1e0-11ea-895b-a44652f9b945.png) 2)1.0.128.0 正常 ![image](https://user-images.githubusercontent.com/45486380/83253986-8a1b1b80-a1e0-11ea-8935-cdbbe0c552dd.png)

怎么解决类似下面的问题呢?都是按git里的方法使用的 2020/01/15 10:10:36 [error] 31256#0: *111517685 lua entry thread aborted: memory allocation error: not enough memory stack traceback: coroutine 0: [C]: in function 'read' /home/work/local/openresty/lualib/resty/ipdb/reader.lua:97: in function 'new' /home/work/local/openresty/lualib/resty/ipdb/city.lua:14: in...