Git Product home page Git Product logo

useragent's Introduction

Hi there ๐Ÿ‘‹

useragent's People

Contributors

mrmop avatar

Watchers

 avatar  avatar

Forkers

marmalade

useragent's Issues

No assignment off of s3eEdkReallocOS() (causing crash)

Hi! I found myself hitting some crashes when using the Android version of this extension. These occur:
-On Exit
-When making multiple calls to getUserAgent()

The cause of this is that on line 57 of UserAgent_platform.cpp, the result of s3eEdkReallocOS() is not assigned into g_RetStr. This means that g_RetStr now points to free memory, which will cause subsequent calls to s3eEdkReallocOS() or s3eEdkFreeOS() to crash or misbehave.

It seems like the intent of line 57 was probably not this:
s3eEdkReallocOS(g_RetStr, g_RetStrLen);
...but instead to use this:
g_RetStr = (char *)s3eEdkReallocOS(g_RetStr, g_RetStrLen);

This seems to solve the issue for me!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.