Giter VIP home page Giter VIP logo

mzappearance's People

Contributors

bitdeli-chef avatar lstomber avatar m1entus avatar mhupman avatar michalz-railwaymen avatar nmccann avatar ybodson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mzappearance's Issues

XCode Build Analyzer complains about memory usage after being freed

XCode Build Analyzer complains "Use of Memory after it is freed" in NSInvocation+Copy.m jbb_removeObjCTypeQualifiers(const char *aType) method

    char *newString = (char *)malloc(sizeof(aType) - 1);
    strncpy(newString, aType + 1, sizeof(aType) - 1);
    const char *returnString = jbb_removeObjCTypeQualifiers(newString);
    free(newString);
    return returnString;

returnString is being used after free.

Security Flaw

Hi,

Our static scan tool reported MZAppearance as having a security flaw in NSInvocation+Copy.m on this line. Evidently it expects the return value of malloc() to be checked or NULL.

I had intended to create a pull request for this, but am unsure what should be returned in the case that malloc() fails. The two options I see are: return NULL and update all the places that call jbb_removeObjCTypeQualifiers() to check for NULL (and then update all of them to return some value on failure), or just return aType. Obviously returning and checking for NULL would be ideal, since just return aType could put the code into an unknown state as it doesn't know that the malloc() failed. The issue with returning NULL is that it affects many other methods.

What would you suggest?

Thank you!

Build problems in Xcode 13

Using Carthage (Please add SPM support to this and MZFormSheet).

MZAppearance.framework/MZAppearance have the same architectures (arm64) and can't be in the same fat output file
Building universal frameworks with common architectures is not possible. The device and simulator slices for "MZAppearance" both build for: arm64
Rebuild with --use-xcframeworks to create an xcframework bundle instead.

Swift support ?

I've used this in the past with great success in ObjC projects, can it work in swift environment ? I made a quick test but failed to get it working

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.