languages in CWE (was: zram-generator)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



stan wrote:
> On Fri, 24 Aug 2018 16:15:53 -0400
> David Malcolm <dmalcolm@xxxxxxxxxx> wrote:
> > https://cwe.mitre.org/data/definitions/658.html  
> 
> Is there a list like that for rust?

Not in CWE apparently.

This seems to be their current schema:
https://cwe.mitre.org/data/xsd/cwe_schema_v6.0.1.xsd

It contains this enumeration:

<xs:simpleType name="LanguageNameEnumeration">
  <xs:annotation>
    <xs:documentation>
      The LanguageNameEnumeration simple type contains a list of values
      corresponding to different source code languages.
    </xs:documentation>
  </xs:annotation>
  <xs:restriction base="xs:string">
    <xs:enumeration value="Ada"/>
    <xs:enumeration value="ASP"/>
    <xs:enumeration value="ASP.NET"/>
    <xs:enumeration value="Basic"/>
    <xs:enumeration value="C"/>
    <xs:enumeration value="COBOL"/>
    <xs:enumeration value="C++"/>
    <xs:enumeration value="C#"/>
    <xs:enumeration value="Fortran"/>
    <xs:enumeration value="F#"/>
    <xs:enumeration value="HTML"/>
    <xs:enumeration value="Java"/>
    <xs:enumeration value="JavaScript"/>
    <xs:enumeration value="JSP"/>
    <xs:enumeration value="Objective-C"/>
    <xs:enumeration value="Pascal"/>
    <xs:enumeration value="Perl"/>
    <xs:enumeration value="PHP"/>
    <xs:enumeration value="Python"/>
    <xs:enumeration value="Ruby"/>
    <xs:enumeration value="SQL"/>
    <xs:enumeration value="Shell"/>
    <xs:enumeration value="Swift"/>
    <xs:enumeration value="VB.NET"/>
    <xs:enumeration value="XML"/>
    <xs:enumeration value="Other"/>
  </xs:restriction>
</xs:simpleType>

This view is said to cover "all the elements in CWE":
https://cwe.mitre.org/data/definitions/2000.html
https://cwe.mitre.org/data/xml/views/2000.xml.zip

From that XML file I extracted this list of languages and how many times
they occur:

      6 ASP.NET
     79 C
     22 C#
     83 C++
     73 Java
      5 JavaScript
     12 Perl
     23 PHP
      3 Python
      3 Ruby
      1 SQL
      3 XML

Obviously the classification is far from complete. Otherwise Objective-C
would occur about as frequently as C and C++, for example.

Björn Persson

Attachment: pgp9XvlVhPJco.pgp
Description: OpenPGP digital signatur

_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux