Questions tagged [mixed-code]

Mixed Code refers to a situation in which code, or sometimes data, of differing privileges share the same context. An adversary may be able to craft malicious code to compromise the confidentiality and/or integrity of differently trusted code/data, enabling exploitation of elevated permissions.

For Java PlugIn and Java WebStart, see Oracle's Mixing Signed and Unsigned Code guide.

For HTTPS, see Ivan Ristic's How to Render SSL Useless, particularly points "8 Mixed page content," "10 Using SSL for “important” bits" and "3 Mixing SSL and plain-text".

40 questions
1
vote
3 answers

C++/Fortran mixed programming: undefined reference to `_gfortran_reshape_r8'

I am compiling a C++ code together with Fortran subroutine. The C++ cpp code is like: #include "Calculate.h" extern "C" double SolveEq_(double *Gvalue, double *GvalueU, double *GvalueV, double *Gnodex, double *Gnodey, double *GtimeInc, double…
Zetian Ren
  • 21
  • 1
  • 4
1
vote
3 answers

signed applet throws security warning, but runs if yes button if clicked

I have a signed applet that builds a menu from an xml file. When it loads I get the java security warning regarding signed and unsigned code. The applet uses jdom.jar It doesn't matter if I hit yes on the security warning dialog box to block the…
user443545
  • 11
  • 2
1
vote
3 answers

Allocating memory in C for a Fortran allocatable

We are trying to take over the memory allocation of a legacy Fortran code (+100,000 lines of code) in C++, because we are using a C library for partitioning and allocating distributed memory on a cluster. The allocatable variables are defined in…
1
vote
0 answers

Is it safe to call managed function from native class method?

I have C++ dll with native interface (exported class), which is compiled with /clr switch. Some methods of exported class have ... parameter. Compiler shows C4793 warning on this class: function is compiled as native code. // ExportedClass.h class…
Alex F
  • 42,307
  • 41
  • 144
  • 212
1
vote
1 answer

Java JRE Mixed Code Security, starting with JRE 1.6.0_19

Java JRE Mixed Code Security, starting with JRE 1.6.0_19 and on Initially around 2010 a main jar Java Applet was implemented, build, and deploy using JDK/JRE 1.6.0_12; the main jar and third party jars were signed, everything work fine. The main jar…
1
vote
2 answers

How to compile (a two mixed C++ source codes from different packages in a single source code)

Say I have two independent .cpp codes in two different directories: (please note that this is just a schematic of my question). Here is the first one ... which can be successfully compiled in its own directory which has its own Makefile // special…
user2056096
  • 85
  • 1
  • 5
1
vote
1 answer

Deploy mixed code Visual Studio application

I have a problem running my application on other machines. I am developing with Visual Studio 2008 in a Win7 x64 machine. The solution contains several C# projects (the main application is written in C#, all others are library projects) and two…
Matthias Bäßler
  • 480
  • 1
  • 5
  • 11
0
votes
2 answers

How to compile MATLAB code to be used with QT C++

I have 2 sets of code: MATLAB code, and QT C++ code. I have tried to compile the MATLAB code to a C++ library using the mcc command with the msvc2008 compiler. For my QT C++ code, I'm using mingw to compile. However, when I try to add in the…
user1142930
  • 73
  • 1
  • 5
0
votes
1 answer

Java unsigned code to signed code calls (Webstart)

I'm trying to make calls from unsigned code to signed code with a Webstart application. The calls are made to a function that returns System.getProperty values. Ofcourse this cannot happen in the unsigned code. So what are the restrictions on calls…
RobotRock
  • 4,211
  • 6
  • 46
  • 86
0
votes
3 answers

STL map for an struct defined in ANSI C

I am coding in a mixed C/C++ environment. I have an struct in C part and I would like to collect it in a map container in C++ part. I think I should define a custom key_compare function object, and let STL map::insert() orders nodes. However I…
ARH
  • 1,355
  • 3
  • 18
  • 32
0
votes
3 answers

Mixed Bag of HTML and PHP

In my PHP page, I am extracting a bunch of variables from the URL, and formatting their output into a nice HTML table. One section in the table needs to be dynamically created, dependent upon what was ordered on the previous webpage. Finally, I'm…
Sterve
  • 51
  • 1
  • 4
  • 9
0
votes
1 answer

avoid to show double popup security alert of my java applet

I created a java applet that uploads a file to a server via ftp, it uses an external library by apache, I signed my applet but when I start the applet from the browser I get two security popups, how do I prevent to show or show only one? hello and…
frx08
  • 4,222
  • 8
  • 37
  • 45
0
votes
1 answer

Why is suddenly this java security warning shown on our applet

A customer got this Java security warning on one of our ancient java components on a web site we develop: The java applet is a tiny applet that does very little (it is simply a dropdown with the ability to write freetext). Is it a simple way to…
awe
  • 21,938
  • 6
  • 78
  • 91
0
votes
1 answer

Can't see how to compile a header file with /clr switch in a mixed class

When creating a mixed mode class, on compilation the header file complains that it needs to be complied with the /clr switch as it is a mixed mode class, however, I can't see any option to specifically compile that header with /clr from visual…
MattN
  • 125
  • 1
  • 5
0
votes
3 answers

How do you reference an Objective C AppDelegate from a Swift Class?

I have an Objective C project and am trying to call the AppDelegate from a Swift view controller. This code is not working: let appDelegate = UIApplication.sharedApplication().delegate as! AppDelegate let managedContext =…
John
  • 538
  • 4
  • 18